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. --- gn_auth/auth/authorisation/resources/errors.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 gn_auth/auth/authorisation/resources/errors.py (limited to 'gn_auth/auth/authorisation/resources/errors.py') diff --git a/gn_auth/auth/authorisation/resources/errors.py b/gn_auth/auth/authorisation/resources/errors.py new file mode 100644 index 0000000..dc6c379 --- /dev/null +++ b/gn_auth/auth/authorisation/resources/errors.py @@ -0,0 +1,6 @@ +"""Exceptions for Authorisation""" + +from gn_auth.auth.authorisation.errors import AuthorisationError + +class MissingGroupError(AuthorisationError): + """Raised for any resource operation without a group.""" -- cgit v1.2.3