From 20075709afd16c7bb69b482e552f041d20a652f2 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 7 Dec 2011 20:01:46 +0100 Subject: closed #445 --- module/Api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'module/Api.py') 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. -- cgit v1.2.3