diff --git a/core/js/share.js b/core/js/share.js index f0fc4136e6..094b0be929 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -604,6 +604,7 @@ $(document).ready(function() { var itemType = $('#dropdown').data('item-type'); var itemSource = $('#dropdown').data('item-source'); var allowPublicUpload = $('#sharingDialogAllowPublicUpload').is(':checked'); + var permissions = 0; // Calculate permissions if (allowPublicUpload) {