Skip to content

Commit

Permalink
Exclude third party users from editors count (#1100)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene authored Nov 29, 2024
2 parents 8dc4827 + 0708bba commit badec5e
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 badec5e

Please sign in to comment.