Move and rename roles_and_permissions.py

This file does not represent a model, but rather a set of utilities
that are specific to user permissions (vs. service permissions).
This commit is contained in:
Ben Thorner
2021-07-22 14:05:11 +01:00
parent 2dd48de1a7
commit 1127a03c32
7 changed files with 11 additions and 15 deletions

View File

@@ -10,16 +10,16 @@ from app.event_handlers import (
)
from app.models import JSONModel, ModelList
from app.models.organisation import Organisation
from app.models.roles_and_permissions import (
all_permissions,
translate_permissions_from_db_to_admin_roles,
)
from app.models.webauthn_credential import WebAuthnCredentials
from app.notify_client import InviteTokenError
from app.notify_client.invite_api_client import invite_api_client
from app.notify_client.org_invite_api_client import org_invite_api_client
from app.notify_client.user_api_client import user_api_client
from app.utils.user import is_gov_user
from app.utils.user_permissions import (
all_permissions,
translate_permissions_from_db_to_admin_roles,
)
def _get_service_id_from_view_args():