Fix 1504 - NBI-HA do not manage correctly new roles (RBAC)
[osm/NBI.git] / osm_nbi / auth.py
index 6cbfe68..dcf12c3 100644 (file)
@@ -486,6 +486,7 @@ class Authenticator:
         :return: True if access granted by permission rules, False if access granted by default rules (Bug 853)
         :raises: AuthExceptionUnauthorized if access denied
         """
+        self.load_operation_to_allowed_roles()
 
         roles_required = self.operation_to_allowed_roles[role_permission]
         roles_allowed = [role["name"] for role in token_info["roles"]]