aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-04-25 09:53:30 +0300
committerFrederick Muriuki Muriithi2023-04-25 09:53:30 +0300
commit27ab5b141e3cdb6ca83c551c163cd9fd3008ad3c (patch)
tree46d50aecf0b37cd271d3bfb9e0ea67de6a4b4f06 /gn3
parent8471ed1187a8abc5e28207776c5f49a59ba24b92 (diff)
downloadgenenetwork3-27ab5b141e3cdb6ca83c551c163cd9fd3008ad3c.tar.gz
auth: provide `user_editable` flag in dictified output
Diffstat (limited to 'gn3')
-rw-r--r--gn3/auth/authorisation/roles/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gn3/auth/authorisation/roles/models.py b/gn3/auth/authorisation/roles/models.py
index 3c57b9d..97e11af 100644
--- a/gn3/auth/authorisation/roles/models.py
+++ b/gn3/auth/authorisation/roles/models.py
@@ -25,6 +25,7 @@ class Role(NamedTuple):
"""Return a dict representation of `Role` objects."""
return {
"role_id": self.role_id, "role_name": self.role_name,
+ "user_editable": self.user_editable,
"privileges": tuple(dictify(priv) for priv in self.privileges)
}