From 64974b9a18ef08f5a9f65a17af5cb06c1db4295c Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 10 Mar 2011 13:19:36 +0100 Subject: webif user managment --- pyLoadCore.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pyLoadCore.py') 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() -- cgit v1.2.3