aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-08-15 15:21:01 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-08-15 15:27:31 +0200
commite89567eb53adac4655e4eb342788dc30758afcf3 (patch)
treef806edaaffb1c40de2e3ff07f9c9366cc14bfca8
parent7f58f36b18ae4d243aff1675fceb776b6869f25e (diff)
downloadnextcloud-server-e89567eb53adac4655e4eb342788dc30758afcf3.tar.gz
nextcloud-server-e89567eb53adac4655e4eb342788dc30758afcf3.zip
Take base permissions from DAV, fixes #10516
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--core/js/shareitemmodel.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/shareitemmodel.js b/core/js/shareitemmodel.js
index 241b9c19c0d..c28d85efbf0 100644
--- a/core/js/shareitemmodel.js
+++ b/core/js/shareitemmodel.js
@@ -777,7 +777,7 @@
return {};
}
- var permissions = this.get('possiblePermissions');
+ var permissions = this.fileInfoModel.get('permissions');
if(!_.isUndefined(data.reshare) && !_.isUndefined(data.reshare.permissions) && data.reshare.uid_owner !== OC.currentUser) {
permissions = permissions & data.reshare.permissions;
}