unify permissions (1/3): add permission conastants to javascript OC

This commit is contained in:
Jörn Friedrich Dreyer 2012-08-31 00:59:10 +02:00
parent 077e988136
commit 61a3e5f96b
1 changed files with 5 additions and 0 deletions

View File

@ -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,