summaryrefslogtreecommitdiffstats
path: root/module/database/UserDatabase.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-09-20 20:41:45 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-09-20 20:41:45 +0200
commit73ede837c8b9a31a8bd0b380d2246fba67bddd89 (patch)
treeda3bc22833f5fc2bf3e614228eff68291d60412c /module/database/UserDatabase.py
parentclosed #390 (diff)
downloadpyload-73ede837c8b9a31a8bd0b380d2246fba67bddd89.tar.xz
general JSON API, url parser
Diffstat (limited to 'module/database/UserDatabase.py')
-rw-r--r--module/database/UserDatabase.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/database/UserDatabase.py b/module/database/UserDatabase.py
index 0e3011593..f888e219e 100644
--- a/module/database/UserDatabase.py
+++ b/module/database/UserDatabase.py
@@ -23,13 +23,14 @@ from hashlib import sha1
import random
class PERMS:
+ ALL = 0 # requires no permission, but login
ADD = 1 # can add packages
DELETE = 2 # can delete packages
STATUS = 4 # see and change server status
- SEE_DOWNLOADS = 16 # see queue and collector
+ SEE_DOWNLOADS = 16 # see queue and collector / modify downloads
DOWNLOAD = 32 # can download from webinterface
SETTINGS = 64 # can access settings
- FILEMANAGER = 128 # can manage files and folders trough webinterface
+ ACCOUNTS = 128 # can access accounts
class ROLE:
ADMIN = 0 #admin has all permissions implicit