Commit e13497fd authored by Patrick's avatar Patrick
Browse files
parent bff4f3de
......@@ -136,7 +136,8 @@ class RepanierCustomBackend(ModelBackend):
codename = perm.split('.', 1)[1]
if not Permission.objects.filter(codename=codename).exists():
perm_splitted = codename.split('_', 1)
codename = '%s_bootstrapcontainerpluginmodel' % perm_splitted[0]
# codename = '%s_bootstrapcontainerpluginmodel' % perm_splitted[0]
codename = '%s_cascadeelement' % perm_splitted[0]
perm = 'cmsplugin_cascade.%s' % codename
return super(RepanierCustomBackend, self).has_perm(user_obj, perm, obj)
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