From 9a8b3619119fed6dd137545ba54deea30528265f Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Sun, 5 Jan 2020 15:54:35 +0100 Subject: Do not show e-mail suggestions if link shares are disabled For #17774 This removes the e-mail suggestions from the share input if link shares are disabled. As e-mail shares use just link shares. Signed-off-by: Roeland Jago Douma --- apps/files_sharing/src/services/ConfigService.js | 1 + 1 file changed, 1 insertion(+) (limited to 'apps/files_sharing/src/services') diff --git a/apps/files_sharing/src/services/ConfigService.js b/apps/files_sharing/src/services/ConfigService.js index 7e0ae960c64..2c50ea1ecfb 100644 --- a/apps/files_sharing/src/services/ConfigService.js +++ b/apps/files_sharing/src/services/ConfigService.js @@ -179,6 +179,7 @@ export default class Config { */ get isMailShareAllowed() { return OC.appConfig.shareByMailEnabled !== undefined + && OC.getCapabilities()['files_sharing']['public']['enabled'] === true } /** -- cgit v1.2.3