Add set_attribute to default permission class
This commit is contained in:
parent
2798dfb712
commit
e4fc50d254
1 changed files with 1 additions and 1 deletions
|
|
@ -54,6 +54,6 @@ class EvenniaPermission(permissions.BasePermission):
|
||||||
if view.action == "destroy":
|
if view.action == "destroy":
|
||||||
# access type based on the destroy command
|
# access type based on the destroy command
|
||||||
return self.check_locks(obj, request.user, self.destroy_locks)
|
return self.check_locks(obj, request.user, self.destroy_locks)
|
||||||
if view.action in ("update", "partial_update"):
|
if view.action in ("update", "partial_update", "set_attribute"):
|
||||||
# access type based on set command
|
# access type based on set command
|
||||||
return self.check_locks(obj, request.user, self.update_locks)
|
return self.check_locks(obj, request.user, self.update_locks)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue