Skip to content

Commit 732a0b7

Browse files
committed
should be checking for "*" in user_access
1 parent 9f2a245 commit 732a0b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core_modules/channel_access.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ def _has_channel_access(self, target, user, names):
1919
else:
2020
required_access.append(name)
2121

22-
print(required_access)
2322

2423
user_access = target.get_user_setting(user.get_id(), "access", [])
2524
identified = self.exports.get_one("is-identified")(user)
2625
matched = list(set(required_access)&set(user_access))
2726

28-
return ("*" in required_access or matched) and identified
27+
return ("*" in user_access or matched) and identified
2928

3029
def _command_check(self, event, channel, require_access):
3130
if channel:

0 commit comments

Comments
 (0)