Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur committed Jul 11, 2022
1 parent 35d1264 commit 8b11548
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/fobi/permissions/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ def has_permission(self, request, view) -> bool:
create_form_entry_permissions
)(request.user)

def has_object_permission(self, request, view, obj) -> bool:
return self.has_permission(request, view)


class EditFormEntryPermission(BasePermission):
"""Permission to edit form entries."""
Expand Down Expand Up @@ -98,6 +101,9 @@ def has_permission(self, request, view) -> bool:
add_form_element_entry_permission
)(request.user)

def has_object_permission(self, request, view, obj) -> bool:
return self.has_permission(request, view)


class EditFormElementEntryPermission(BasePermission):
"""Permission to edit form element entries."""
Expand Down

0 comments on commit 8b11548

Please sign in to comment.