From ac4b0c2a607891f5a85f2946c09032d59fd9b82f Mon Sep 17 00:00:00 2001 From: jmb-oddbook <oddbook@posteo.net> Date: Fri, 23 Sep 2022 18:25:27 +0200 Subject: [PATCH] Update learninggroups.py Erlaubt Mods sowie Organizers einer Lerngruppe diese zu archivieren. --- cogs/learninggroups.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/learninggroups.py b/cogs/learninggroups.py index 030cbe3..43c01b4 100644 --- a/cogs/learninggroups.py +++ b/cogs/learninggroups.py @@ -765,9 +765,9 @@ class LearningGroups(commands.Cog): mod=True ) @cmd_lg.command(name="archive", aliases=["archiv"]) - @commands.check(utils.is_mod) async def cmd_archive(self, ctx): - await self.archive(ctx.channel) + if self.is_group_organizer(ctx.channel, ctx.author) or utils.is_mod(ctx): + await self.archive(ctx.channel) @help( command_group="lg", -- GitLab