diff options
| author | 2019-11-21 16:19:43 +0000 | |
|---|---|---|
| committer | 2019-11-21 16:19:43 +0000 | |
| commit | dea29c5d5bcdf3a07cda43b066dfdf7fb93d5b9a (patch) | |
| tree | f528c6daa2193c45a7237ac0414413a3713dc1da /modules | |
| parent | refactor permissions and allow hostmasks to be assigned to accounts (diff) | |
| signature | ||
`authenticated` is expected to be a boolean
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/permissions/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/permissions/__init__.py b/modules/permissions/__init__.py index 1be221c4..fbdfad1a 100644 --- a/modules/permissions/__init__.py +++ b/modules/permissions/__init__.py @@ -288,7 +288,7 @@ class Module(ModuleManager.BaseModule): authenticated = event["hook"].get_kwarg("authenticated", False) if not permission == None: allowed = self._has_permission(event["user"], permission) - elif not authenticated == None: + elif authenticated: allowed = self._is_identified(event["user"]) if not allowed == None: |
