fsdfdsfsdf
This commit is contained in:
parent
8cea099fef
commit
6549344215
2 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ class PermissionManager(object):
|
|||
self.perm_users[perm] = []
|
||||
self.perm_users[perm] = users
|
||||
|
||||
def has_perm_simple(self, mask, perm):
|
||||
def has_perm_mask(self, mask, perm):
|
||||
|
||||
allowed_users = self.perm_users[perm]
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ def sieve_suite(bot, input, func, kind, args):
|
|||
|
||||
allowed_permissions = args.get('permissions', [])
|
||||
for perm in allowed_permissions:
|
||||
if conn.permissions.has_perm_legacy(mask, perm):
|
||||
if conn.permissions.has_perm_mask(mask, perm):
|
||||
return input
|
||||
|
||||
input.notice("Sorry, you are not allowed to use this command.")
|
||||
|
|
Reference in a new issue