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
Hey Guys,
According to guardian documentation PermissionRequiredMixin will check the permission against the object specified by the function get_object or attribute self.object if neither specified it will check if the user has the permission globally https://pythonhosted.org/django-guardian/api/guardian.mixins.html
but when I check the code it seems this Mixin only check the global permission and never call get_object, debugging my code also proved that.
am I missing something or is this a bug?
I can fix it and upload a patch but need to verify its really a bug
Tested version: 1.2.4
The text was updated successfully, but these errors were encountered:
Hey Guys,
According to guardian documentation PermissionRequiredMixin will check the permission against the object specified by the function get_object or attribute self.object if neither specified it will check if the user has the permission globally
https://pythonhosted.org/django-guardian/api/guardian.mixins.html
but when I check the code it seems this Mixin only check the global permission and never call get_object, debugging my code also proved that.
am I missing something or is this a bug?
I can fix it and upload a patch but need to verify its really a bug
Tested version: 1.2.4
The text was updated successfully, but these errors were encountered: