Skip to content
Snippets Groups Projects
Commit 12be3201 authored by Calum Mackervoy's avatar Calum Mackervoy
Browse files

bugfix: handling modules with multiple layers

parent 82048cb7
No related branches found
No related tags found
No related merge requests found
......@@ -123,7 +123,7 @@ class LDPPermissions(DjangoObjectPermissions):
# compare them with the permissions I have
for perm in perms:
if not perm.split('.')[1].split('_')[0] in user_perms:
if not perm.split('.')[-1].split('_')[0] in user_perms:
return False
return True
......@@ -146,7 +146,7 @@ class LDPPermissions(DjangoObjectPermissions):
# compare them with the permissions I have
for perm in perms:
if not perm.split('.')[1].split('_')[0] in user_perms:
if not perm.split('.')[-1].split('_')[0] in user_perms:
return False
return True
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment