Add filter for disabled users to superuser user list API

Fixes https://jira.coreos.com/browse/QS-102
This commit is contained in:
Joseph Schorr 2017-12-22 16:45:49 -05:00
parent 1d3a93efcb
commit 8e473b9779
6 changed files with 44 additions and 19 deletions

View file

@ -198,8 +198,8 @@ class PreOCIModel(SuperuserDataInterface):
return return_user, confirmation.code
return return_user, ''
def get_active_users(self):
users = model.user.get_active_users()
def get_active_users(self, disabled=True):
users = model.user.get_active_users(disabled=disabled)
return [_create_user(user) for user in users]
def get_organizations(self):