Show More
@@ -130,11 +130,13 b' class UsersGroupsController(BaseControll' | |||
|
130 | 130 | c.users_group.permissions['repositories_groups'][gr.group.group_name] \ |
|
131 | 131 | = gr.permission.permission_name |
|
132 | 132 | |
|
133 |
c.group_members_obj = |
|
|
133 | c.group_members_obj = sorted((x.user for x in c.users_group.members), | |
|
134 | key=lambda u: u.username.lower()) | |
|
134 | 135 | c.group_members = [(x.user_id, x.username) for x in |
|
135 | 136 | c.group_members_obj] |
|
136 |
c.available_members = |
|
|
137 |
User.query().all() |
|
|
137 | c.available_members = sorted(((x.user_id, x.username) for x in | |
|
138 | User.query().all()), | |
|
139 | key=lambda u: u[1].lower()) | |
|
138 | 140 | |
|
139 | 141 | def update(self, id): |
|
140 | 142 | """PUT /users_groups/id: Update an existing item""" |
General Comments 0
You need to be logged in to leave comments.
Login now