diff options
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. |