summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-09-19 13:58:26 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2017-11-20 18:24:50 +0100
commit670ac48eb73d8ab1ce44fae81a23296f10d997c0 (patch)
treef892d8ea42027bf8b518e416fb6c17c24e79805e /apps/files/js
parentfc456bec39446880ca6153ef903b569f041dd087 (diff)
downloadnextcloud-server-670ac48eb73d8ab1ce44fae81a23296f10d997c0.tar.gz
nextcloud-server-670ac48eb73d8ab1ce44fae81a23296f10d997c0.zip
adjust permissions in web view for encrypted folders
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 6996e423776..8eecfd13c22 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1447,7 +1447,9 @@
path = fileData.path || this.getCurrentDirectory(),
permissions = parseInt(fileData.permissions, 10) || 0;
- if (fileData.isShareMountPoint) {
+ var isEndToEndEncrypted = (type === 'dir' && fileData.isEncrypted);
+
+ if (!isEndToEndEncrypted && fileData.isShareMountPoint) {
permissions = permissions | OC.PERMISSION_UPDATE;
}