diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-07-05 13:23:30 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-07-06 09:45:08 +0200 |
commit | 0bcc643d6e8fdc369e8c7117a619b1dcc8f8822d (patch) | |
tree | 954d5fa282898b4c6cf0240e5797994778b6a0bb /apps/files_sharing/src | |
parent | 52af709ceaf77b1f8b6b8f7b81dbbc115784f792 (diff) | |
download | nextcloud-server-0bcc643d6e8fdc369e8c7117a619b1dcc8f8822d.tar.gz nextcloud-server-0bcc643d6e8fdc369e8c7117a619b1dcc8f8822d.zip |
Cleanup share by mail a bit
* Moved to ned IBootstrap
* Register everything via the capabilities api (So clients can use it as
well)
- This applies to the enforcing passwords
* Updated the sharing js code to use it
* removed app.php
* removed unused settings now
* typehints
* strict typing
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r-- | apps/files_sharing/src/services/ConfigService.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/src/services/ConfigService.js b/apps/files_sharing/src/services/ConfigService.js index 2c50ea1ecfb..1fcf2810956 100644 --- a/apps/files_sharing/src/services/ConfigService.js +++ b/apps/files_sharing/src/services/ConfigService.js @@ -178,7 +178,7 @@ export default class Config { * @memberof Config */ get isMailShareAllowed() { - return OC.appConfig.shareByMailEnabled !== undefined + return OC.getCapabilities()['files_sharing']['sharebymail'] !== undefined && OC.getCapabilities()['files_sharing']['public']['enabled'] === true } @@ -223,7 +223,7 @@ export default class Config { * @memberof Config */ get isPasswordForMailSharesRequired() { - return (OC.appConfig.shareByMail === undefined) ? false : OC.appConfig.shareByMail.enforcePasswordProtection === true + return (OC.getCapabilities()['files_sharing']['sharebymail'] === undefined) ? false : OC.getCapabilities()['files_sharing']['sharebymail']['password']['enforced'] } /** |