aboutsummaryrefslogtreecommitdiff
path: root/gn3/auth/authorisation/roles/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/auth/authorisation/roles/models.py')
-rw-r--r--gn3/auth/authorisation/roles/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gn3/auth/authorisation/roles/models.py b/gn3/auth/authorisation/roles/models.py
index b1aac75..26b8f0a 100644
--- a/gn3/auth/authorisation/roles/models.py
+++ b/gn3/auth/authorisation/roles/models.py
@@ -27,7 +27,9 @@ class Role(NamedTuple):
"privileges": tuple(dictify(priv) for priv in self.privileges)
}
-@authorised_p(("group:role:create-role",), error_message="Could not create role")
+@authorised_p(
+ privileges = ("group:role:create-role",),
+ error_description="Could not create role")
def create_role(
cursor: db.DbCursor, role_name: str,
privileges: Iterable[Privilege]) -> Role: