diff --git a/sio_model.py b/sio_model.py index 34984e8..ff61d9c 100644 --- a/sio_model.py +++ b/sio_model.py @@ -118,7 +118,8 @@ class SioDecorator: if sender_id != self.app.ctx.sio_config.self_id: e: AsyncEnforcer = self.app.ctx.e - if e.enforce(str(room_id), self._cmd[0][1:]): + if (e.enforce(str(room_id), self._cmd[0][1:]) or + (await e.has_role_for_user(str(sender_id), 'admin'))): parser = ArgumentParser(self._cmd[0]) sqt = SioRequest(app=self.app,