From 122699593de088a9807d5d452b8a03c20ec5bfd3 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Sun, 15 Jul 2018 22:39:03 -0600 Subject: [PATCH] Enable user-level access to bridge and unbridge commands --- mautrix_telegram/commands/portal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mautrix_telegram/commands/portal.py b/mautrix_telegram/commands/portal.py index 38998224..0c88ca74 100644 --- a/mautrix_telegram/commands/portal.py +++ b/mautrix_telegram/commands/portal.py @@ -134,7 +134,7 @@ async def delete_portal(evt: CommandEvent): "bridge, use `$cmdprefix+sp unbridge` instead.") -@command_handler(needs_auth=False, +@command_handler(needs_auth=False, needs_puppeting=False, help_section=SECTION_PORTAL_MANAGEMENT, help_text="Remove puppets from the current portal room and forget the portal.") async def unbridge(evt: CommandEvent): @@ -150,7 +150,7 @@ async def unbridge(evt: CommandEvent): "by typing `$cmdprefix+sp confirm-unbridge`") -@command_handler(needs_auth=False, +@command_handler(needs_auth=False, needs_puppeting=False, help_section=SECTION_PORTAL_MANAGEMENT, help_args="[_id_]", help_text="Bridge the current Matrix room to the Telegram chat with the given "