diff --git a/lib/galaxy/webapps/galaxy/services/users.py b/lib/galaxy/webapps/galaxy/services/users.py index 0317af35cacc..4cab9d01ab12 100644 --- a/lib/galaxy/webapps/galaxy/services/users.py +++ b/lib/galaxy/webapps/galaxy/services/users.py @@ -259,9 +259,7 @@ def get_index( for key, value in user_dict.items(): if key in expose_keys: limited_user[key] = value - user = LimitedUserModel(**limited_user) + rval.append(LimitedUserModel(**limited_user)) else: - user = UserModel(**user_dict) - - rval.append(user) + rval.append(UserModel(**user_dict)) return rval