Skip to content

Commit

Permalink
fix(rbac): remove invalid required permission (#6608)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdriiiPRodri authored Jan 20, 2025
1 parent 0f7c0c1 commit 465a758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/backend/api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ def set_required_permissions(self):
"""
if self.request.method in SAFE_METHODS:
# No permissions required for GET requests
self.required_permissions = [Permissions.MANAGE_PROVIDERS]
self.required_permissions = []
else:
# Require permission for non-GET requests
self.required_permissions = [Permissions.MANAGE_SCANS]
Expand Down

0 comments on commit 465a758

Please sign in to comment.