Skip to content

Commit

Permalink
Add log message for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding committed Dec 10, 2024
1 parent ed23011 commit 8764fbd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ansible_base/resource_registry/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def has_permission(self, request, view):
else:
logger.warning(f'View {view} denied request because view action can not be identified')

logger.warning(f'User {request.user.username} with {allowed_actions} actions allowed denied {getattr(view, "action", "unknown")} request')
return False


Expand Down

0 comments on commit 8764fbd

Please sign in to comment.