Add filter for disabled users to superuser user list API
Fixes https://jira.coreos.com/browse/QS-102
This commit is contained in:
parent
1d3a93efcb
commit
8e473b9779
6 changed files with 44 additions and 19 deletions
|
@ -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):
|
||||
|
|
Reference in a new issue