summaryrefslogtreecommitdiffstats
path: root/core/js/share.js
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-08-05 10:57:13 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-08-05 10:57:51 +0200
commit41cca70a63eea6bb07565f2e4f3e68f8218eac78 (patch)
tree3d0032ec5565f2957165b1863ab4ac66ff39b970 /core/js/share.js
parentc0e78d984140ecd6a49ac615214b4a68fab0557e (diff)
downloadnextcloud-server-41cca70a63eea6bb07565f2e4f3e68f8218eac78.tar.gz
nextcloud-server-41cca70a63eea6bb07565f2e4f3e68f8218eac78.zip
don't display share permission if resharing was disabled by the admin
Diffstat (limited to 'core/js/share.js')
-rw-r--r--core/js/share.js4
1 files changed, 2 insertions, 2 deletions
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) {