summaryrefslogtreecommitdiffstats
path: root/core/js/files
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2017-11-20 16:15:52 +0100
committerGitHub <noreply@github.com>2017-11-20 16:15:52 +0100
commitf347e2e4a6cab71c35d58ff21692e23d7443db60 (patch)
tree878bd5f18958fdde2666d58b49a558a98bc209e9 /core/js/files
parentbca165805ea8b27cc127ac71f140d8d0ed7f4edb (diff)
parent3e844d3a59cc571c93b6edcd80dce2cffd89072b (diff)
downloadnextcloud-server-f347e2e4a6cab71c35d58ff21692e23d7443db60.tar.gz
nextcloud-server-f347e2e4a6cab71c35d58ff21692e23d7443db60.zip
Merge pull request #7047 from nextcloud/add-support-for-files-with-no-permissions
Add support for files with no permissions
Diffstat (limited to 'core/js/files')
-rw-r--r--core/js/files/client.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/js/files/client.js b/core/js/files/client.js
index e810381342a..fa3d795d412 100644
--- a/core/js/files/client.js
+++ b/core/js/files/client.js
@@ -320,7 +320,7 @@
}
}
- data.permissions = OC.PERMISSION_READ;
+ data.permissions = OC.PERMISSION_NONE;
var permissionProp = props[Client.PROPERTY_PERMISSIONS];
if (!_.isUndefined(permissionProp)) {
var permString = permissionProp || '';
@@ -333,6 +333,9 @@
case 'K':
data.permissions |= OC.PERMISSION_CREATE;
break;
+ case 'G':
+ data.permissions |= OC.PERMISSION_READ;
+ break;
case 'W':
case 'N':
case 'V':