[SOLVED] Permission for owner that user account

Issue I building 2 permission for the user account owner and the apartment owner. Although they have the same code, the user account owner doesn’t work. permissions.py class IsOwnerUserOrReadOnly(permissions.BasePermission): def has_object_permission(self, request, view, obj): if request.method in permissions.SAFE_METHODS: return True

Continue reading