Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Commit

Permalink
Merge pull request #484 from nextcloud/bugfix/noid/public-hide-download
Browse files Browse the repository at this point in the history
Hide button if download links are hidden for link shares
  • Loading branch information
rullzer authored Nov 20, 2018
2 parents 5a41994 + cd70946 commit cc23a97
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/slideshowcontrols.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@
if (transparent) {
this._showBackgroundToggle();
}
this.showButton('.downloadImage');
var hideDownload = $('#hideDownload').val();
if (hideDownload !== 'true') {
this.showButton('.downloadImage');
}
var canDelete = ((permissions & OC.PERMISSION_DELETE) !== 0);
var canShare = ((permissions & OC.PERMISSION_SHARE) !== 0);
if (!isPublic && canDelete) {
Expand Down

0 comments on commit cc23a97

Please sign in to comment.