Skip to content

Commit

Permalink
Require finance_show for membership fee view
Browse files Browse the repository at this point in the history
Currently only shows an empty table with a 403 for users lacking that
permission.
  • Loading branch information
FestplattenSchnitzel committed May 28, 2024
1 parent 102c75a commit 377b43a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/blueprints/finance/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1368,8 +1368,9 @@ def membership_fee_users_due_json(fee_id: int) -> ResponseReturnValue:
).model_dump()


@bp.route("/membership_fees", methods=['GET', 'POST'])
@nav.navigate("Beiträge", icon='fa-hand-holding-usd')
@bp.route("/membership_fees", methods=["GET", "POST"])
@nav.navigate("Beiträge", icon="fa-hand-holding-usd")
@access.require("finance_change")
def membership_fees() -> ResponseReturnValue:
table = MembershipFeeTable(data_url=url_for('.membership_fees_json'))
return render_template('finance/membership_fees.html', table=table)
Expand Down

0 comments on commit 377b43a

Please sign in to comment.