authenticated is expected to be a boolean

This commit is contained in:
jesopo 2019-11-21 16:19:43 +00:00
parent 2dfc55fb9f
commit dea29c5d5b

View file

@ -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: