feature endorse password for share links

works like "enforce password protection", but let the
user optionally remove the password protection after the
password is set.

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
Timo Benk 2016-10-14 09:58:24 +02:00 committed by Bjoern Schiessle
parent b85b6f2439
commit cbfe5f3c1f
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
2 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@
defaults: {
publicUploadEnabled: false,
enforcePasswordForPublicLink: oc_appconfig.core.enforcePasswordForPublicLink,
endorsePasswordForPublicLink: oc_appconfig.core.endorsePasswordForPublicLink,
isDefaultExpireDateEnforced: oc_appconfig.core.defaultExpireDateEnforced === true,
isDefaultExpireDateEnabled: oc_appconfig.core.defaultExpireDateEnabled === true,
isRemoteShareAllowed: oc_appconfig.core.remoteShareAllowed,

View File

@ -228,7 +228,7 @@
}
if($checkBox.is(':checked')) {
if(this.configModel.get('enforcePasswordForPublicLink') === false) {
if(this.configModel.get('enforcePasswordForPublicLink') === false && this.configModel.get('endorsePasswordForPublicLink') === false) {
$loading.removeClass('hidden');
// this will create it
this.model.saveLinkShare();