diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-03-10 13:19:36 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-03-10 13:19:36 +0100 |
commit | 64974b9a18ef08f5a9f65a17af5cb06c1db4295c (patch) | |
tree | 7b3699cc77691951654e9b48b38544b203efe1de /module/remote/RemoteManager.py | |
parent | link parser from forum thx to ToFF, missing icons (diff) | |
download | pyload-64974b9a18ef08f5a9f65a17af5cb06c1db4295c.tar.xz |
webif user managment
Diffstat (limited to 'module/remote/RemoteManager.py')
-rw-r--r-- | module/remote/RemoteManager.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/module/remote/RemoteManager.py b/module/remote/RemoteManager.py index 941aac6e8..b102d549e 100644 --- a/module/remote/RemoteManager.py +++ b/module/remote/RemoteManager.py @@ -19,6 +19,8 @@ from threading import Thread from traceback import print_exc +from module.database.UserDatabase import ROLE + class BackendBase(Thread): def __init__(self, manager): Thread.__init__(self) @@ -83,4 +85,9 @@ class RemoteManager(): return True if self.core.startedInGui and remoteip == "127.0.0.1": return True - return self.core.db.checkAuth(user, password) + + user = self.core.db.checkAuth(user, password) + if user["role"] == ROLE.ADMIN: + return user + else: + return {} |