Skip to content

Commit

Permalink
Merge pull request #26 from StoppedwummPython/Permissions
Browse files Browse the repository at this point in the history
Permissions
  • Loading branch information
StoppedwummPython authored Aug 16, 2024
2 parents 8beff26 + f952f2a commit 9153ec3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion __main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ def logOut(self):
s = magisSession(frontend, backend, webdav)
s.login(username, pwd)

print(s.getApps()[1].name)
s.logOut()


Expand Down
6 changes: 6 additions & 0 deletions classes/permissions.py
Original file line number Diff line number Diff line change
@@ -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"]
1 change: 1 addition & 0 deletions classes/user.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import datetime
from classes.permissions import *
class user:
userName = ""
firstName = ""
Expand Down

0 comments on commit 9153ec3

Please sign in to comment.