From 27ab5b141e3cdb6ca83c551c163cd9fd3008ad3c Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 25 Apr 2023 09:53:30 +0300 Subject: auth: provide `user_editable` flag in dictified output --- gn3/auth/authorisation/roles/models.py | 1 + 1 file changed, 1 insertion(+) (limited to 'gn3/auth') 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) } -- cgit v1.2.3