mirror of
https://github.com/evennia/evennia.git
synced 2026-04-02 22:17:17 +02:00
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":
|
||||
# access type based on the destroy command
|
||||
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
|
||||
return self.check_locks(obj, request.user, self.update_locks)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue