Skip to content

Commit

Permalink
Update middleware.py
Browse files Browse the repository at this point in the history
  • Loading branch information
watucker authored Jan 27, 2021
1 parent 33aebc6 commit 94d4931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authorize/opa/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _is_authorized(self, request, resource):
# Check authorization for resource
is_authorized = False
try:
permission = self._client.check_permission(input_data=check_data, policy_name="policies/esgf_policies_local.rego", rule_name="allow")
permission = self._client.check_permission(input_data=check_data, policy_name="policies/policy.rego", rule_name="allow")
is_authorized = permission.get("result", False)

except OPAAuthorizationError as e:
Expand Down

0 comments on commit 94d4931

Please sign in to comment.