diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-10-21 11:46:01 -0700 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-10-21 11:46:01 -0700 |
commit | bd7cf436c684918c8b0ed0390f1bbd3d34eb2e65 (patch) | |
tree | 02db2a1fed4528b9f22e6fd217965831aea53f19 /core | |
parent | a376407da3dcac86f5a2ab41f23545ff6c4b21d9 (diff) | |
parent | f8717bc26005912f14fb0da52b7dd66f86f3b929 (diff) | |
download | nextcloud-server-bd7cf436c684918c8b0ed0390f1bbd3d34eb2e65.tar.gz nextcloud-server-bd7cf436c684918c8b0ed0390f1bbd3d34eb2e65.zip |
Merge pull request #5441 from owncloud/files-sharewithlinkasnormaluserfix
Fixed share with link checkbox missing as regular user
Diffstat (limited to 'core')
-rw-r--r-- | core/js/share.js | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/core/js/share.js b/core/js/share.js index 6ec15f01c1e..9c606b9de62 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -203,18 +203,7 @@ OC.Share={ html += '<input id="shareWith" type="text" placeholder="'+t('core', 'Share with')+'" />'; html += '<ul id="shareWithList">'; html += '</ul>'; - var linksAllowed = false; - $.ajax({ - type: 'GET', - url: OC.filePath('core', 'ajax', 'appconfig.php'), - data: { action:'getValue', app:'core', key:'shareapi_allow_links', defaultValue:'yes' }, - async: false, - success: function(result) { - if (result && result.status === 'success' && result.data === 'yes') { - linksAllowed = true; - } - } - }); + var linksAllowed = $('#allowShareWithLink').val() === 'yes'; if (link && linksAllowed) { html += '<div id="link">'; html += '<input type="checkbox" name="linkCheckbox" id="linkCheckbox" value="1" /><label for="linkCheckbox">'+t('core', 'Share with link')+'</label>'; |