aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/authorisation
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-08-04 12:49:40 +0300
committerFrederick Muriuki Muriithi2023-08-04 12:49:40 +0300
commitbd99071174bfa80d179dd32673200f51000b86b5 (patch)
treeab15db002983ddebf10ea6e632b2d0b05b3455d9 /gn_auth/auth/authorisation
parent8b7c598407a5fea9a3d78473e72df87606998cd4 (diff)
downloadgn-auth-bd99071174bfa80d179dd32673200f51000b86b5.tar.gz
Initialise the application and update some module imports
Diffstat (limited to 'gn_auth/auth/authorisation')
-rw-r--r--gn_auth/auth/authorisation/checks.py2
-rw-r--r--gn_auth/auth/authorisation/privileges.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/gn_auth/auth/authorisation/checks.py b/gn_auth/auth/authorisation/checks.py
index 1c87c02..02c6810 100644
--- a/gn_auth/auth/authorisation/checks.py
+++ b/gn_auth/auth/authorisation/checks.py
@@ -4,7 +4,7 @@ from typing import Callable
from flask import request, current_app as app
-from gn3.auth import db
+from gn_auth.auth import db
from . import privileges as auth_privs
from .errors import InvalidData, AuthorisationError
diff --git a/gn_auth/auth/authorisation/privileges.py b/gn_auth/auth/authorisation/privileges.py
index dbb4129..1b0f06c 100644
--- a/gn_auth/auth/authorisation/privileges.py
+++ b/gn_auth/auth/authorisation/privileges.py
@@ -1,8 +1,8 @@
"""Handle privileges"""
from typing import Any, Iterable, NamedTuple
-from gn3.auth import db
-from gn3.auth.authentication.users import User
+from gn_auth.auth import db
+from gn_auth.auth.authentication.users import User
class Privilege(NamedTuple):
"""Class representing a privilege: creates immutable objects."""