added logic to hide the show/hide autosaves feature for users without permission to view detailed_statistics
This commit is contained in:

committed by
Sebastian Serth

parent
184c9cba6d
commit
66d9a2b22a
@ -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
|
||||
|
Reference in New Issue
Block a user