Skip to content

Commit

Permalink
Remove hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacspe committed Apr 12, 2024
1 parent 6105912 commit 659b52a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions competition/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ def has_permission(self, request, view):
if request.method in permissions.SAFE_METHODS:
return True

# TODO: PremyslieŤ ako rozumne checkovať permission.
# if request.method == 'POST':
# return view.get_serializer().Meta.model.can_user_create(request.user, request.data)
if request.method == 'POST':
return view.get_serializer().Meta.model.can_user_create(request.user, request.data)

return request.user.is_authenticated and request.user.is_staff

Expand Down

0 comments on commit 659b52a

Please sign in to comment.