From e5bb2375e95dc822218e0cb6e42686f3e4c5e04a Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Fri, 11 Sep 2020 16:38:52 -0300 Subject: [PATCH] [IMPROVEMENT] Add "Allow_Save_Media_to_Gallery" setting --- app/lib/server/startup/settings.js | 4 ++++ packages/rocketchat-i18n/i18n/en.i18n.json | 1 + packages/rocketchat-i18n/i18n/pt-BR.i18n.json | 1 + 3 files changed, 6 insertions(+) diff --git a/app/lib/server/startup/settings.js b/app/lib/server/startup/settings.js index af11aabf4b33..1e545fff282a 100644 --- a/app/lib/server/startup/settings.js +++ b/app/lib/server/startup/settings.js @@ -1172,6 +1172,10 @@ settings.addGroup('Meta', function() { }); settings.addGroup('Mobile', function() { + this.add('Allow_Save_Media_to_Gallery', true, { + type: 'boolean', + public: true, + }); this.section('Screen_Lock', function() { this.add('Force_Screen_Lock', false, { type: 'boolean', i18nDescription: 'Force_Screen_Lock_description', public: true }); this.add('Force_Screen_Lock_After', 1800, { type: 'int', i18nDescription: 'Force_Screen_Lock_After_description', enableQuery: { _id: 'Force_Screen_Lock', value: true }, public: true }); diff --git a/packages/rocketchat-i18n/i18n/en.i18n.json b/packages/rocketchat-i18n/i18n/en.i18n.json index 115efd951e89..c7568273fc65 100644 --- a/packages/rocketchat-i18n/i18n/en.i18n.json +++ b/packages/rocketchat-i18n/i18n/en.i18n.json @@ -317,6 +317,7 @@ "Allow_collect_and_store_HTTP_header_informations_description": "This setting determines whether Livechat is allowed to store information collected from HTTP header data, such as IP address, User-Agent, and so on.", "Allow_Invalid_SelfSigned_Certs": "Allow Invalid Self-Signed Certs", "Allow_Invalid_SelfSigned_Certs_Description": "Allow invalid and self-signed SSL certificate's for link validation and previews.", + "Allow_Save_Media_to_Gallery": "Allow Save Media to Gallery", "Allow_switching_departments": "Allow Visitor to Switch Departments", "Allow_Marketing_Emails": "Allow Marketing Emails", "Allow_Online_Agents_Outside_Business_Hours": "Allow online agents outside of business hours", diff --git a/packages/rocketchat-i18n/i18n/pt-BR.i18n.json b/packages/rocketchat-i18n/i18n/pt-BR.i18n.json index f55886c45ba2..d92341e86292 100644 --- a/packages/rocketchat-i18n/i18n/pt-BR.i18n.json +++ b/packages/rocketchat-i18n/i18n/pt-BR.i18n.json @@ -299,6 +299,7 @@ "Allow_collect_and_store_HTTP_header_informations_description": "Esta configuração determina se o Livechat tem permissão para armazenar informações coletadas do HTTP Header, como endereço IP, User-Agent, etc.", "Allow_Invalid_SelfSigned_Certs": "Permitir certificados auto-assinados inválidos", "Allow_Invalid_SelfSigned_Certs_Description": "Permitir certificado SSL inválidos e auto-assinados para validação de link e previews.", + "Allow_Save_Media_to_Gallery": "Permitir salvar mídias na galeria", "Allow_switching_departments": "Permitir que Visitantes Mudem de Departamento", "Allow_Marketing_Emails": "Permitir emails de marketing", "Allow_Online_Agents_Outside_Business_Hours": "Permitir agentes online fora do horário de expediente",