X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_nbi%2Fauth.py;h=dcf12c3fb389090d2dad66f8491b3f48631c4d6b;hb=refs%2Fchanges%2F60%2F11060%2F1;hp=6cbfe685732d3fba9ac46f3eff42854dc231bac7;hpb=7ddb0732d05743a56ee3376446f76be8fa73d3ad;p=osm%2FNBI.git diff --git a/osm_nbi/auth.py b/osm_nbi/auth.py index 6cbfe68..dcf12c3 100644 --- a/osm_nbi/auth.py +++ b/osm_nbi/auth.py @@ -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"]]