fix(admin): force string to groups name

darta 2022-01-24 16:39:56 +00:00
parent 6b715a4ee6
commit 39c68f52a0
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@ def group(group_id=False):
@login_required
def groups(provider=False):
if request.method == "GET":
sorted_groups = sorted(app.admin.get_mix_groups(), key=lambda k: k["name"])
sorted_groups = sorted(app.admin.get_mix_groups(), key=lambda k: str(k["name"]))
if current_user.role != "admin":
## internal groups should be avoided as are assigned with the role
sorted_groups = [sg for sg in sorted_groups if not system_group(sg["name"])]