Skip to content

Commit b50f183

Browse files
committed
Fix ordering of fnmatch arguments
1 parent 4b8c5a3 commit b50f183

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cloudbot/permissions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def has_perm_mask(self, user_mask, perm, notice=True):
8080
for user_perm, allowed_users in self.perm_users.items():
8181
if fnmatch(perm, user_perm):
8282
for allowed_mask in allowed_users:
83-
if fnmatch(user_mask.lower(), allowed_mask):
83+
if fnmatch(allowed_mask, user_mask.lower()):
8484
if notice:
8585
logger.info("[{}|permissions] Allowed user {} access to {}".format(self.name, user_mask, perm))
8686
return True

0 commit comments

Comments
 (0)