diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-09-19 13:58:26 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2017-11-20 18:24:50 +0100 |
commit | 670ac48eb73d8ab1ce44fae81a23296f10d997c0 (patch) | |
tree | f892d8ea42027bf8b518e416fb6c17c24e79805e /apps/files/js | |
parent | fc456bec39446880ca6153ef903b569f041dd087 (diff) | |
download | nextcloud-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.js | 4 |
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; } |