diff options
author | Frederick Muriuki Muriithi | 2023-04-25 09:53:30 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-04-25 09:53:30 +0300 |
commit | 27ab5b141e3cdb6ca83c551c163cd9fd3008ad3c (patch) | |
tree | 46d50aecf0b37cd271d3bfb9e0ea67de6a4b4f06 | |
parent | 8471ed1187a8abc5e28207776c5f49a59ba24b92 (diff) | |
download | genenetwork3-27ab5b141e3cdb6ca83c551c163cd9fd3008ad3c.tar.gz |
auth: provide `user_editable` flag in dictified output
-rw-r--r-- | gn3/auth/authorisation/roles/models.py | 1 |
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) } |