Skip to content

Commit

Permalink
Exclude third party users from editors count
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Nov 29, 2024
1 parent 282df7b commit 0708bba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/iam/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 0708bba

Please sign in to comment.