should be checking for "*" in user_access
This commit is contained in:
parent
9f2a245f6e
commit
732a0b77eb
1 changed files with 1 additions and 2 deletions
|
@ -19,13 +19,12 @@ class Module(ModuleManager.BaseModule):
|
||||||
else:
|
else:
|
||||||
required_access.append(name)
|
required_access.append(name)
|
||||||
|
|
||||||
print(required_access)
|
|
||||||
|
|
||||||
user_access = target.get_user_setting(user.get_id(), "access", [])
|
user_access = target.get_user_setting(user.get_id(), "access", [])
|
||||||
identified = self.exports.get_one("is-identified")(user)
|
identified = self.exports.get_one("is-identified")(user)
|
||||||
matched = list(set(required_access)&set(user_access))
|
matched = list(set(required_access)&set(user_access))
|
||||||
|
|
||||||
return ("*" in required_access or matched) and identified
|
return ("*" in user_access or matched) and identified
|
||||||
|
|
||||||
def _command_check(self, event, channel, require_access):
|
def _command_check(self, event, channel, require_access):
|
||||||
if channel:
|
if channel:
|
||||||
|
|
Loading…
Reference in a new issue