Ensure that edit and delete buttons are only visible if the user can

edit
pull/1/head
Jens Pelzetter 2022-07-23 13:59:45 +02:00
parent cdf9ff8d94
commit ce9542a1d6
1 changed files with 20 additions and 16 deletions

View File

@ -52,6 +52,7 @@
<td>#{article.title}</td>
<td>#{article.chapter}</td>
<td>
<c:if test="#{CmsSelectedDocumentModel.canEdit}">
<a class="btn btn-secondary"
href="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@articleincollectedvolume-basicproperties">
<bootstrap:svgIcon icon="pen" />
@ -59,8 +60,10 @@
#{SciPublicationsUiMessageBundle['collectedvolume.basicproperties.articles.actions.edit']}
</span>
</a>
</c:if>
</td>
<td>
<c:if test="#{CmsSelectedDocumentModel.canEdit}">
<libreccm:deleteDialog
actionTarget="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@collectedvolume-basicproperties/articles/#{article.articleUuid}/remove"
buttonText="#{SciPublicationsUiMessageBundle['collectedvolume.basicproperties.articles.actions.remove']}"
@ -70,6 +73,7 @@
dialogTitle="#{SciPublicationsUiMessageBundle['collectedvolume.basicproperties.articles.actions.remove.title']}"
message="#{SciPublicationsUiMessageBundle.getMessage('collectedvolume.basicproperties.articles.actions.remove.message', [SciCmsPublicationPropertiesStepModel.name, article.title])}"
/>
</c:if>
</td>
</tr>
</c:forEach>