parent
16f16e8a15
commit
31a8a0fba4
7 changed files with 76 additions and 11 deletions
|
@ -72,6 +72,9 @@ def __get_org_admin_users(org):
|
|||
.where(Team.organization == org, TeamRole.name == 'admin', User.robot == False)
|
||||
.distinct())
|
||||
|
||||
def get_admin_users(org):
|
||||
""" Returns the owner users for the organization. """
|
||||
return __get_org_admin_users(org)
|
||||
|
||||
def remove_organization_member(org, user_obj):
|
||||
org_admins = [u.username for u in __get_org_admin_users(org)]
|
||||
|
|
Reference in a new issue