check part of array, not whole array, for "*"
This commit is contained in:
parent
50d12e7e1f
commit
0d13725ab7
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ class Module(ModuleManager.BaseModule):
|
|||
last = i==(len(permission_parts)-1)
|
||||
user_last = i==(len(user_permission_parts)-1)
|
||||
if not permission_parts[i] == user_permission_parts[i]:
|
||||
if user_permission_parts == "*" and user_last:
|
||||
if user_permission_parts[i] == "*" and user_last:
|
||||
return True
|
||||
else:
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue