Chore: Remove the `mobile-download-file` permission (#23996)

* Add migration to remove the mobile-download-file permission

* Remove permission from upsertPermissions
pull/23843/head
Matheus Barbosa Silva 3 years ago committed by GitHub
parent c98d48e150
commit 01985bc5b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      app/authorization/server/functions/upsertPermissions.ts
  2. 1
      packages/rocketchat-i18n/i18n/ca.i18n.json
  3. 1
      packages/rocketchat-i18n/i18n/en.i18n.json
  4. 1
      packages/rocketchat-i18n/i18n/es.i18n.json
  5. 1
      packages/rocketchat-i18n/i18n/fr.i18n.json
  6. 1
      packages/rocketchat-i18n/i18n/nl.i18n.json
  7. 1
      packages/rocketchat-i18n/i18n/pt-BR.i18n.json
  8. 1
      server/startup/migrations/index.ts
  9. 9
      server/startup/migrations/v250.ts

@ -151,7 +151,6 @@ export const upsertPermissions = async (): Promise<void> => {
{ _id: 'pin-message', roles: ['owner', 'moderator', 'admin'] },
{ _id: 'snippet-message', roles: ['owner', 'moderator', 'admin'] },
{ _id: 'mobile-upload-file', roles: ['user', 'admin'] },
{ _id: 'mobile-download-file', roles: ['user', 'admin'] },
];

@ -2994,7 +2994,6 @@
"Mobex_sms_gateway_restful_address_desc": "IP o Host del seu Mobex REST API. Per exemple, `http://192.168.1.1:8080` o `https://www.example.com:8080`",
"Mobex_sms_gateway_username": "Nom d'usuari",
"Mobile": "Mòbil",
"mobile-download-file": "Permetre la descàrrega de fitxers en dispositius mòbils",
"mobile-upload-file": "Permetre la càrrega de fitxers en dispositius mòbils",
"Mobile_Push_Notifications_Default_Alert": "Alerta per defecte notificacions mòbil",
"Monday": "dilluns",

@ -3000,7 +3000,6 @@
"Mobex_sms_gateway_restful_address_desc": "IP or Host of your Mobex REST API. E.g. `http://192.168.1.1:8080` or `https://www.example.com:8080`",
"Mobex_sms_gateway_username": "Username",
"Mobile": "Mobile",
"mobile-download-file": "Allow file download on mobile devices",
"mobile-upload-file": "Allow file upload on mobile devices",
"Mobile_Push_Notifications_Default_Alert": "Push Notifications Default Alert",
"Monday": "Monday",

@ -2993,7 +2993,6 @@
"Mobex_sms_gateway_restful_address_desc": "IP o Host de su Mobex REST API. Por ejemplo, `http://192.168.1.1:8080` o `https://www.example.com:8080`",
"Mobex_sms_gateway_username": "Nombre de usuario",
"Mobile": "Móvil",
"mobile-download-file": "Permitir la descarga de archivos en dispositivos móviles",
"mobile-upload-file": "Permitir la carga de archivos en dispositivos móviles",
"Mobile_Push_Notifications_Default_Alert": "Alerta predeterminada de notificaciones móviles",
"Monday": "Lunes",

@ -3000,7 +3000,6 @@
"Mobex_sms_gateway_restful_address_desc": "IP ou hôte de votre REST API Mobex, par exemple `http://192.168.1.1:8080` ou `https://www.example.com:8080`",
"Mobex_sms_gateway_username": "Nom d'utilisateur",
"Mobile": "Mobile",
"mobile-download-file": "Autoriser le téléchargement de fichiers sur les appareils mobiles",
"mobile-upload-file": "Autoriser l'envoi de fichiers sur les appareils mobiles",
"Mobile_Push_Notifications_Default_Alert": "Alerte par défaut des notifications push",
"Monday": "Lundi",

@ -3000,7 +3000,6 @@
"Mobex_sms_gateway_restful_address_desc": "IP of Host van uw Mobex REST API, bijv. `http://192.168.1.1:8080` of `https://www.example.com:8080`",
"Mobex_sms_gateway_username": "Gebruikersnaam",
"Mobile": "Mobiel",
"mobile-download-file": "Downloaden van bestanden op mobiele apparaten toestaan",
"mobile-upload-file": "Uploaden van bestanden op mobiele apparaten toestaan",
"Mobile_Push_Notifications_Default_Alert": "Standaardwaarschuwing pushmeldingen",
"Monday": "Maandag",

@ -2999,7 +2999,6 @@
"Mobex_sms_gateway_restful_address_desc": "IP ou Host da API REST Mobex. Por exemplo, `http://192.168.1.1:8080` ou `https://www.example.com:8080`",
"Mobex_sms_gateway_username": "Nome de Usuário",
"Mobile": "Móvel",
"mobile-download-file": "Permitir download em dispositivos móveis",
"mobile-upload-file": "Permitir upload em dispositivos móveis",
"Mobile_Push_Notifications_Default_Alert": "Alertas Padrão de Notificações Push",
"Monday": "Segunda-feira",

@ -73,4 +73,5 @@ import './v246';
import './v247';
import './v248';
import './v249';
import './v250';
import './xrun';

@ -0,0 +1,9 @@
import { addMigration } from '../../lib/migrations';
import { Permissions } from '../../../app/models/server/raw';
addMigration({
version: 250,
up() {
Permissions.removeById('mobile-download-file');
},
});
Loading…
Cancel
Save