I have an model called client, and a group called managers that has the permission "can view clients" granted in Django admin.
I have a view using the permission_required decorator like so:
@permission_required('client.view_client', raise_exception=True)
Originally I had it as
@permission_required('client.can_view', raise_exception=True)
which also fails.
When logged in as a user who is a member of group managers, I am unable to access the view as I get a 403 Forbidden
message.
Why is this? If the user is a member of the group with the appropriate permission, why is access not authorized?