parent
818ea38dac
commit
30af8aef1a
5 changed files with 72 additions and 0 deletions
|
@ -137,6 +137,10 @@ def get_organizations():
|
|||
return User.select().where(User.organization == True, User.robot == False)
|
||||
|
||||
|
||||
def get_active_org_count():
|
||||
return get_organizations().count()
|
||||
|
||||
|
||||
def add_user_as_admin(user_obj, org_obj):
|
||||
try:
|
||||
admin_role = TeamRole.get(name='admin')
|
||||
|
|
Reference in a new issue