Skip to content

Commit

Permalink
chore: remove unnecessary query condition from get_other_system_manag…
Browse files Browse the repository at this point in the history
…ers (frappe#19611)
  • Loading branch information
phot0n authored Jan 17, 2023
1 parent 433115f commit 75ae0fa
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions frappe/core/doctype/user/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,10 @@ def get_other_system_managers(self):
.from_(user_role_doctype)
.select(user_doctype.name)
.where(user_role_doctype.role == "System Manager")
.where(user_doctype.docstatus < 2)
.where(user_doctype.enabled == 1)
.where(user_role_doctype.parent == user_doctype.name)
.where(user_role_doctype.parent.notin(["Administrator", self.name]))
.limit(1)
.distinct()
).run()

def get_fullname(self):
Expand Down

0 comments on commit 75ae0fa

Please sign in to comment.