board members can open and close trips for others

This commit is contained in:
2024-03-16 19:47:04 +01:00
parent 4d634ce313
commit d1fa3e0336
3 changed files with 12 additions and 5 deletions

View File

@ -19,6 +19,8 @@
{% for log in on_water %}
{% if log.shipmaster == loggedin_user.id %}
{{ log::show(log=log, state="on_water", allowed_to_close=true, only_ones="cox" not in loggedin_user.roles) }}
{% elif "Vorstand" in loggedin_user.roles %}
{{ log::show(log=log, state="on_water", allowed_to_close=true, only_ones="cox" not in loggedin_user.roles) }}
{% else %}
{{ log::show(log=log, state="on_water", only_ones=true) }}
{% endif %}