We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b5a93d commit 8017a28Copy full SHA for 8017a28
src/main/webapp/WEB-INF/views/series/info.html
@@ -99,7 +99,10 @@
99
th:action="@{${ADD_IMAGE_SERIES_PAGE}(id=${series.id})}"
100
th:object="${addImageForm}">
101
<div class="form-group form-group-sm" th:classappend="${#fields.hasErrors('uploadedImage') ? 'has-error' : ''}">
102
- <label for="image" class="control-label col-sm-3" th:text="#{t_image}">
+ <label for="image"
103
+ class="control-label col-sm-3"
104
+ th:classappend="${#authorization.expression('hasAuthority(''DOWNLOAD_IMAGE'')') ? '' : 'required-field'}"
105
+ th:text="#{t_image}">
106
Image
107
</label>
108
<div class="col-sm-9">
0 commit comments