summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2017-11-02 14:55:58 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2017-11-02 19:37:00 +0100
commite6b74fac407b62168633be75312074e8ae0e2175 (patch)
treee573846ca7e0df0e7df6bd1b123f88ef6c0bdd65 /core/js/js.js
parent555d582f35d1704996c3bf72510a8272cc38f833 (diff)
downloadnextcloud-server-e6b74fac407b62168633be75312074e8ae0e2175.tar.gz
nextcloud-server-e6b74fac407b62168633be75312074e8ae0e2175.zip
Add proper handling of files without permissions
Now a file gets its directory permissions only if it contained no permissions (they were undefined or null), but not if its permissions were set to "NONE". Besides that, now file actions that do not require any permission on the file to be performed can be used on files that have no permissions. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/js/js.js b/core/js/js.js
index c02ef5c7920..246aae3ac02 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -60,6 +60,7 @@ function fileDownloadPath(dir, file) {
/** @namespace */
var OCP = {},
OC = {
+ PERMISSION_NONE:0,
PERMISSION_CREATE:4,
PERMISSION_READ:1,
PERMISSION_UPDATE:2,