HasObjPerm directive on a update mutation fails updating the cache, due to unhashable type OperationInfo #158
Comments
Hey @gersmann . This seems to be indeed a bug. I think I'll try to fix it here right now |
Ah, nice, thank you @bellini666. I am wondering if |
What do you mean? |
Nevermind, misunderstanding on my side. Works like a charm now. |
@gersmann oh, I see what you mean. Please check if https://github.com/blb-ventures/strawberry-django-plus/releases/tag/v1.33.1 fixes that |
@bellini666 yes, all good. Thank you. |
…-class Documentation for overriding the field class
Specifying a
HasObjPerm
directive on a update mutation fails updating the cache, due to unhashable typeOperationInfo
. This is due to the resolver returningOperationInfo
instead ofFieldValueType
, if the user does not have the expected permissions (in this casereporting.change_fieldvalue
).The directive works for the 'good' case, where the permission is granted.
I am wondering if I am missing something, or what the correct way of using object permissions on mutations would be. Should there be an exception on return value permission checking for
OperationInfo
?Mutation Setup:
Stack:
The text was updated successfully, but these errors were encountered: