Skip to content

Commit

Permalink
Merge pull request #21587 from nextcloud/backport/20726/stable17-fix-…
Browse files Browse the repository at this point in the history
…federated-link-sharing-permissions

[stable17] Fix federated link sharing permissions
  • Loading branch information
rullzer authored Jul 4, 2020
2 parents aae2363 + 31d2d04 commit 04d1f76
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/js/dist/share_backend.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/js/dist/share_backend.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion core/js/sharedialoglinkshareview.js
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,9 @@
var publicUploadRChecked = '';
var publicUploadWChecked = '';

switch (this.model.linkSharePermissions(share.id)) {
// Public upload status is independent of the share permission,
// which is used for federated shares.
switch (this.model.linkSharePermissions(share.id) & ~OC.PERMISSION_SHARE) {
case OC.PERMISSION_READ:
publicUploadRChecked = 'checked';
break;
Expand Down

0 comments on commit 04d1f76

Please sign in to comment.