Skip to content

Commit

Permalink
[web] fix wrong conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasjuhrich committed Aug 2, 2023
1 parent f51c1fc commit 21bdbe8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions web/blueprints/user/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,9 @@ def user_show_groups_json(user_id, group_filter="all"):
title="Bearbeiten",
icon="fa-edit",
btn_class="btn-link",
),
)
]
+ [
BtnColResponse(
href=url_for(
".end_membership",
Expand All @@ -492,9 +494,9 @@ def user_show_groups_json(user_id, group_filter="all"):
icon="fa-power-off",
btn_class="btn-link",
)
if active
else {},
],
]
if active
else [],
)
for membership, granted, denied in memberships
]
Expand Down

0 comments on commit 21bdbe8

Please sign in to comment.