diff --git a/core/js/share.js b/core/js/share.js index 270eab356e..734bbbfe0b 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -203,7 +203,12 @@ OC.Share={ html += ''; html += ''; - if (link) { + 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; + } + }}); html += '