summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/services
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-01-05 15:54:35 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2020-01-06 10:22:22 +0100
commit9a8b3619119fed6dd137545ba54deea30528265f (patch)
tree6b76316e29c918dcd40f9723aefe0757b9412177 /apps/files_sharing/src/services
parenta7b3ed32add9589c6f32319d61d5ba8dd583ee13 (diff)
downloadnextcloud-server-9a8b3619119fed6dd137545ba54deea30528265f.tar.gz
nextcloud-server-9a8b3619119fed6dd137545ba54deea30528265f.zip
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 <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_sharing/src/services')
-rw-r--r--apps/files_sharing/src/services/ConfigService.js1
1 files changed, 1 insertions, 0 deletions
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
}
/**