From 85a364e204dcdb6d9490bfae200030e1bcbcb3a6 Mon Sep 17 00:00:00 2001 From: armanddidierjean <95971503+armanddidierjean@users.noreply.github.com> Date: Sat, 16 Nov 2024 15:56:08 +0100 Subject: [PATCH] Restrict Overleaf auth client to ecl users --- app/utils/auth/providers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/utils/auth/providers.py b/app/utils/auth/providers.py index 88cdd27c6..786b49680 100644 --- a/app/utils/auth/providers.py +++ b/app/utils/auth/providers.py @@ -370,6 +370,8 @@ class SiarnaqAuthClient(BaseAuthClient): class OverleafAuthClient(BaseAuthClient): + allowed_groups: list[GroupType] | None = get_ecl_groups() + @classmethod def get_userinfo(cls, user: models_core.CoreUser): return {