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)
|
last = i==(len(permission_parts)-1)
|
||||||
user_last = i==(len(user_permission_parts)-1)
|
user_last = i==(len(user_permission_parts)-1)
|
||||||
if not permission_parts[i] == user_permission_parts[i]:
|
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
|
return True
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue