fix(settings): grant the user access to their own settings

ref: #485 #486
This commit is contained in:
2025-01-23 22:47:55 +09:30
parent b0127584d6
commit a1207bfb0f

View File

@ -115,6 +115,13 @@ class OrganizationPermissionMixin(
try:
if (
view.model.__name__ == 'UserSettings'
and request._user.id == int(view.kwargs.get('pk', 0))
):
return True
has_permission_required: bool = False