diff options
Diffstat (limited to 'gn_auth/auth/authorisation/users/admin/ui.py')
-rw-r--r-- | gn_auth/auth/authorisation/users/admin/ui.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gn_auth/auth/authorisation/users/admin/ui.py b/gn_auth/auth/authorisation/users/admin/ui.py index 9087412..68e1ba5 100644 --- a/gn_auth/auth/authorisation/users/admin/ui.py +++ b/gn_auth/auth/authorisation/users/admin/ui.py @@ -2,12 +2,13 @@ from functools import wraps from flask import flash, url_for, redirect -from gn_auth.auth.authentication.users import User -from gn_auth.auth.db.sqlite3 import with_db_connection -from gn_auth.auth.authorisation.roles.models import user_roles - from gn_auth.session import logged_in, session_user, clear_session_info +from ....authentication.users import User +from ....db.sqlite3 import with_db_connection + +from ...roles.models import user_roles + def is_admin(func): """Verify user is a system admin.""" @wraps(func) |