check part of array, not whole array, for "*"

This commit is contained in:
jesopo 2019-11-21 16:36:06 +00:00
parent 50d12e7e1f
commit 0d13725ab7

View file

@ -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