Skip to content

Commit

Permalink
fix: Non-admin project Role request to /projects/ID/features/ID Cause…
Browse files Browse the repository at this point in the history
…s Crash (#4289)
  • Loading branch information
novakzaballa authored Jul 18, 2024
1 parent 117f72a commit bce6530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/features/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def has_permission(self, request, view):
def has_object_permission(self, request, view, obj):
# map of actions and their required permission
if view.action in ACTION_PERMISSIONS_MAP:
tag_ids = []
tag_ids = None
required_permission = ACTION_PERMISSIONS_MAP.get(view.action)
if required_permission in TAG_SUPPORTED_PROJECT_PERMISSIONS:
tag_ids = list(obj.tags.values_list("id", flat=True))
Expand Down

0 comments on commit bce6530

Please sign in to comment.