added logic to hide the show/hide autosaves feature for users without permission to view detailed_statistics

This commit is contained in:
Janis4411
2022-07-20 16:47:37 +02:00
committed by Sebastian Serth
parent 184c9cba6d
commit 66d9a2b22a

View File

@ -38,6 +38,7 @@ h1
option data-submission=submission
=index
- index += 1
- if policy(@exercise).detailed_statistics?
.bg-light.w-100.p-2.mb-4.align-items-center.d-flex.justify-content-between
- if @show_autosaves
span.pl-1.pb-1