Fix for bug 1447 Grafana user not associated with team
[osm/MON.git] / osm_mon / core / common_db.py
index ce44d4d..aa65388 100644 (file)
@@ -162,3 +162,6 @@ class CommonDbClient:
 
     def get_role_by_name(self, name: str):
         return self.common_db.get_one('roles', {'name': name})
+
+    def get_role_by_id(self, role_id: str):
+        return self.common_db.get_one('roles', {'_id': role_id})