Merge pull request #21587 from nextcloud/backport/20726/stable17-fix-federated-link-sharing-permissions

[stable17] Fix federated link sharing permissions
This commit is contained in:
Roeland Jago Douma 2020-07-04 08:54:21 +02:00 committed by GitHub
commit 04d1f76775
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -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;