only FORCE_SUCCESS for masterlogin when there's a permissions requirement

This commit is contained in:
jesopo 2019-10-09 14:29:25 +01:00
parent dc8c5ab7dc
commit 1e1eeb9b7f

View file

@ -191,7 +191,7 @@ class Module(ModuleManager.BaseModule):
target.nickname)
def _check_command(self, event, permission, authenticated):
if event["user"].admin_master:
if event["user"].admin_master and (permission or authenticated):
return utils.consts.PERMISSION_FORCE_SUCCESS, None
identity_mechanism = event["server"].get_setting("identity-mechanism",