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 /pyLoadCore.py | |
parent | link parser from forum thx to ToFF, missing icons (diff) | |
download | pyload-64974b9a18ef08f5a9f65a17af5cb06c1db4295c.tar.xz |
webif user managment
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index 1bd194f94..fc2ce8e29 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -839,6 +839,15 @@ class ServerMethods(): def checkAuth(self, username, password): return self.core.db.checkAuth(username, password) + def get_user_data(self): + return self.core.db.getAllUserData() + + def set_user_permission(self, user, permission, role): + + self.core.db.setPermission(user, permission) + self.core.db.setRole(user, role) + + def deamon(): try: pid = os.fork() |