You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
controller.context.kwargs.get('data') used to give me the data already passed to the controller serialized. so I can just access it here but after 0.22.0 this value is returning as None.
Is this a bug or an intended change?
I understand I can get the data from the request.body but that means it needs to be re-processed from json which seem redundant.
class IsUserAllowedToUpdate(BasePermission):
def has_permission(self, request: HttpRequest, controller) -> bool:
data = controller.context.kwargs.get('data')
mydata= data.mydata
The text was updated successfully, but these errors were encountered:
@asemoon I see what is happening now, an update was made to check for permissions before schema validation. That's the only way this can be happening.
I will look to see if there is a workaround.
controller.context.kwargs.get('data') used to give me the data already passed to the controller serialized. so I can just access it here but after 0.22.0 this value is returning as None.
Is this a bug or an intended change?
I understand I can get the data from the request.body but that means it needs to be re-processed from json which seem redundant.
The text was updated successfully, but these errors were encountered: