diff options
| author | 2019-11-22 11:48:29 +0000 | |
|---|---|---|
| committer | 2019-11-22 11:50:23 +0000 | |
| commit | 3935bf3a30a409bfae09abfe5bcb99240236ed24 (patch) | |
| tree | 8db4b36198e3ebd47228cfe8bcc1032f4b5df74f /modules/channel_access.py | |
| parent | correctly detect when a track has tags (lastfm) (diff) | |
| signature | ||
IRCUser.get_identified_account() doesn't exist anymore
Diffstat (limited to 'modules/channel_access.py')
| -rw-r--r-- | modules/channel_access.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/channel_access.py b/modules/channel_access.py index 100b22e0..a7d75ac9 100644 --- a/modules/channel_access.py +++ b/modules/channel_access.py @@ -1,5 +1,6 @@ #--depends-on check_mode #--depends-on commands +#--depends-on permissions from src import ModuleManager, utils @@ -8,7 +9,7 @@ class Module(ModuleManager.BaseModule): def _has_channel_access(self, target, user, require_access): access = target.get_user_setting(user.get_id(), "access", []) - identified_account = user.get_identified_account() + identified = self.exports.get_one("is-identified")(user) return ((require_access in access or "*" in access ) and identified_account) |
