adjust permissions in web view for encrypted folders

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
Bjoern Schiessle 2017-09-19 13:58:26 +02:00 committed by Daniel Calviño Sánchez
parent fc456bec39
commit 670ac48eb7
1 changed files with 3 additions and 1 deletions

View File

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