I am using a custom authentication backend built on CAS and LDAP in a Django project. I intend to have it set up such that it can get permissions based on the what LDAP groups a user is part of. However, I have had problems with it and took a step back, so that both has_perm
and has_module_perms
in my backend return True always.
What I discovered was that the backend does not appear to work on the admin site (it says "You do not have permission to edit anything.") However, it works in a different place, where I go through the list of apps and check has_module_perms
on each app.
I've looked through the Django code and everything suggests that it should work, so I don't know what I'm missing.