From 0708bba43c63832f2784f3e4550d63be1ae17b4c Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Fri, 29 Nov 2024 11:49:37 +0100 Subject: [PATCH] Exclude third party users from editors count --- backend/iam/models.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/iam/models.py b/backend/iam/models.py index 48e800fa8..15b3725b8 100644 --- a/backend/iam/models.py +++ b/backend/iam/models.py @@ -537,7 +537,11 @@ def is_editor(self) -> bool: @classmethod def get_editors(cls) -> List[Self]: - return [user for user in cls.objects.all() if user.is_editor] + return [ + user + for user in cls.objects.all() + if user.is_editor and not user.is_third_party + ] class Role(NameDescriptionMixin, FolderMixin):