X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fadmin_topics.py;h=b695693a65869c88b0289f9723911e7e16181fbe;hp=9f6f6d7de0ec75485da62deeeec221514b0a20b6;hb=HEAD;hpb=4cd875d2a38488b5e717258d548eeb8e557ec9a8 diff --git a/osm_nbi/admin_topics.py b/osm_nbi/admin_topics.py index 9f6f6d7..de0ad1f 100644 --- a/osm_nbi/admin_topics.py +++ b/osm_nbi/admin_topics.py @@ -440,7 +440,7 @@ class CommonVimWimSdn(BaseTopic): # remove reference from project_read if there are more projects referencing it. If it last one, # do not remove reference, but order via kafka to delete it - if session["project_id"] and session["project_id"]: + if session["project_id"]: other_projects_referencing = next( ( p @@ -1000,6 +1000,8 @@ class UserTopicAuth(UserTopic): or indata.get("project_role_mappings") or indata.get("projects") or indata.get("add_projects") + or indata.get("unlock") + or indata.get("renew") ): return _id if indata.get("project_role_mappings") and ( @@ -1122,6 +1124,9 @@ class UserTopicAuth(UserTopic): "old_password": indata.get("old_password"), "add_project_role_mappings": mappings_to_add, "remove_project_role_mappings": mappings_to_remove, + "system_admin_id": indata.get("system_admin_id"), + "unlock": indata.get("unlock"), + "renew": indata.get("renew"), } ) data_to_send = {"_id": _id, "changes": indata}