diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-12-07 20:01:46 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-12-07 20:01:46 +0100 |
commit | 20075709afd16c7bb69b482e552f041d20a652f2 (patch) | |
tree | 37e332a95a418e92ee384954dbf152729e1780e0 /module/Api.py | |
parent | closed #436 (diff) | |
download | pyload-20075709afd16c7bb69b482e552f041d20a652f2.tar.xz |
closed #445
Diffstat (limited to 'module/Api.py')
-rw-r--r-- | module/Api.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/Api.py b/module/Api.py index fc36c9fea..f0bf5e264 100644 --- a/module/Api.py +++ b/module/Api.py @@ -65,6 +65,7 @@ class PERMS: DOWNLOAD = 64 # can download from webinterface SETTINGS = 128 # can access settings ACCOUNTS = 256 # can access accounts + LOGS = 512 # can see server logs class ROLE: ADMIN = 0 #admin has all permissions implicit @@ -249,7 +250,7 @@ class Api(Iface): """Restart pyload core""" self.core.do_restart = True - @permission(PERMS.STATUS) + @permission(PERMS.LOGS) def getLog(self, offset=0): """Returns most recent log entries. |