1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 16:36:15 +00:00

In group name validation, search for groups rather than get all groups.

This commit is contained in:
Jonathan Villemaire-Krajden
2018-10-10 17:26:17 +02:00
parent 5b2a16bdf1
commit c7b3bd206f

View File

@@ -46,7 +46,7 @@ def check_group_name_conflict(request, new_group_name):
if request.cloud_mode:
checked_groups = seaserv.get_personal_groups_by_user(username)
else:
checked_groups = ccnet_api.get_all_groups(-1, -1)
checked_groups = ccnet_api.search_groups(new_group_name, -1, -1)
for g in checked_groups:
if g.group_name == new_group_name: