Skip to content
Snippets Groups Projects
Verified Commit bce12fd6 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

feat: check for permissions insted of is_superuser

parent db913d06
Branches
Tags
No related merge requests found
......@@ -724,7 +724,7 @@ class APINoteViewSet(
user = self.request.user
if self.request.method in permissions.SAFE_METHODS or user.is_superuser:
if self.request.method in permissions.SAFE_METHODS or user.has_perm("update_note"):
return Note.objects.all()
else:
return Note.objects.filter(timeslot__schedule__show__owners=user)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment