From e19b01571ce61e01f482a1dadeeb2fd835fda939 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 14 Sep 2023 12:06:23 +0300 Subject: Move `groups` package under `resources` package With user groups being resources that users can act on (with the recent changes), this commit moves the `groups` module to under the `resources` module. It also renames the `*_resources.py` modules by dropping the `_resources` part since the code is under the `resources` module anyway. --- scripts/migrate_existing_data.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/migrate_existing_data.py') diff --git a/scripts/migrate_existing_data.py b/scripts/migrate_existing_data.py index db3f426..c9ac343 100644 --- a/scripts/migrate_existing_data.py +++ b/scripts/migrate_existing_data.py @@ -16,9 +16,10 @@ from gn_auth.auth.db import mariadb as biodb import gn_auth.auth.db.sqlite3 as authdb from gn_auth.auth.authentication.users import User -from gn_auth.auth.authorisation.groups.models import Group, save_group from gn_auth.auth.authorisation.roles.models import ( revoke_user_role_by_name, assign_user_role_by_name) + +from gn_auth.auth.authorisation.resources.groups.models import Group, save_group from gn_auth.auth.authorisation.resources.models import ( Resource, ResourceCategory, __assign_resource_owner_role__) -- cgit v1.2.3