diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2012-08-31 00:59:10 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2012-08-31 01:11:10 +0200 |
commit | 61a3e5f96b5019f89587e8cead63988f274d140e (patch) | |
tree | 37fce805e3f6bacaa3897b9768dd42b5b4bf0441 /core/js | |
parent | 077e98813606c07e35f73533f349a4f66f3c1e99 (diff) | |
download | nextcloud-server-61a3e5f96b5019f89587e8cead63988f274d140e.tar.gz nextcloud-server-61a3e5f96b5019f89587e8cead63988f274d140e.zip |
unify permissions (1/3): add permission conastants to javascript OC
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/js.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/js/js.js b/core/js/js.js index 0a7c84f61da..7ce349a2147 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -40,6 +40,11 @@ function fileDownloadPath(dir, file) { } OC={ + PERMISSION_CREATE:4, + PERMISSION_READ:1, + PERMISSION_UPDATE:2, + PERMISSION_DELETE:8, + PERMISSION_SHARE:16, webroot:oc_webroot, appswebroots:oc_appswebroots, currentUser:(typeof oc_current_user!=='undefined')?oc_current_user:false, |