django-rest-framework icon indicating copy to clipboard operation
django-rest-framework copied to clipboard

Update perms_map in DjangoModelPermissions and DjangoObjectPermissions

Open RashA07 opened this issue 5 years ago • 3 comments

Description

Django permissions allows for 'view_modelname'. When users have view_modelname permission, these permission classes don't recognize it and reject access to the user.

My specific case was assigning customers to a group with the group having specific permissions allowed from the model permissions. Made this edit in an extension of DjangoModelPermissions to make it work. Thought it would be useful to have inherently. Not sure if this solves an existing error of any sort.

RashA07 avatar Feb 17 '21 11:02 RashA07

+1 - it's actually really surprising that the defaults don't require view permissions for at least GET.

danlamanna avatar Jun 08 '21 07:06 danlamanna

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 28 '22 01:04 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 28 '25 00:04 stale[bot]