diff --git a/__main__.py b/__main__.py index 6864495..2ed28f0 100644 --- a/__main__.py +++ b/__main__.py @@ -88,7 +88,6 @@ def logOut(self): s = magisSession(frontend, backend, webdav) s.login(username, pwd) - print(s.getApps()[1].name) s.logOut() diff --git a/classes/permissions.py b/classes/permissions.py new file mode 100644 index 0000000..83da622 --- /dev/null +++ b/classes/permissions.py @@ -0,0 +1,6 @@ +class Permission: + def __init__(self, info: dict, name: str) -> None: + self.PermName = name + self.allowed: bool = info["allowed"] + self.fields = info["fields"] + self.constraints: dict = info["constraints"] diff --git a/classes/user.py b/classes/user.py index 6139469..f1a33f4 100644 --- a/classes/user.py +++ b/classes/user.py @@ -1,5 +1,6 @@ import json import datetime +from classes.permissions import * class user: userName = "" firstName = ""