unify permissions (1/3): add permission conastants to javascript OC
This commit is contained in:
parent
077e988136
commit
61a3e5f96b
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue