diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/js/config.php | 1 | ||||
-rw-r--r-- | core/js/share.js | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/core/js/config.php b/core/js/config.php index 0ab74d2949e..b61694522db 100644 --- a/core/js/config.php +++ b/core/js/config.php @@ -83,6 +83,7 @@ $array = array( 'defaultExpireDateEnforced' => $enforceDefaultExpireDate, 'enforcePasswordForPublicLink' => \OCP\Util::isPublicLinkPasswordRequired(), 'sharingDisabledForUser' => \OCP\Util::isSharingDisabledForUser(), + 'resharingAllowed' => \OCP\Share::isResharingAllowed(), ) ) ), diff --git a/core/js/share.js b/core/js/share.js index 14abdf18ade..1b4e519f201 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -488,7 +488,7 @@ OC.Share={ if (possiblePermissions & OC.PERMISSION_DELETE) { permissions = permissions | OC.PERMISSION_DELETE; } - if (possiblePermissions & OC.PERMISSION_SHARE) { + if (oc_appconfig.core.resharingAllowed && (possiblePermissions & OC.PERMISSION_SHARE)) { permissions = permissions | OC.PERMISSION_SHARE; } @@ -620,7 +620,7 @@ OC.Share={ } html += '<label><input type="checkbox" name="mailNotification" class="mailNotification" ' + checked + ' />'+t('core', 'notify by email')+'</label> '; } - if (possiblePermissions & OC.PERMISSION_SHARE) { + if (oc_appconfig.core.resharingAllowed && (possiblePermissions & OC.PERMISSION_SHARE)) { html += '<label><input type="checkbox" name="share" class="permissions" '+shareChecked+' data-permissions="'+OC.PERMISSION_SHARE+'" />'+t('core', 'can share')+'</label>'; } if (possiblePermissions & OC.PERMISSION_CREATE || possiblePermissions & OC.PERMISSION_UPDATE || possiblePermissions & OC.PERMISSION_DELETE) { |