Commit cf25b6c8 authored by Patrick's avatar Patrick

Check permission against cascade_dummy instead of dummy_cmsplugin_cascade

parent f25e2104
......@@ -131,7 +131,8 @@ class RepanierCustomBackend(ModelBackend):
return user_or_none
def has_perm(self, user_obj, perm, obj=None):
if perm.startswith('dummy_cmsplugin_cascade'):
# if perm.startswith('dummy_cmsplugin_cascade'):
if perm.startswith('cascade_dummy'):
codename = perm.split('.', 1)[1]
if not Permission.objects.filter(codename=codename).exists():
perm_splitted = codename.split('_', 1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment