Skip to content

Commit

Permalink
Render panelGroup only if user has the right authority
Browse files Browse the repository at this point in the history
  • Loading branch information
henning-gerhardt committed Feb 6, 2025
1 parent 693f6ab commit fbe7555
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@
</h:link>

<h:panelGroup styleClass="action"
rendered="#{SecurityAccessController.hasAuthorityToUnassignTasks()}"
title="#{empty UserForm.getTasksInProgress(item) ? msgs.userWithoutTasks : msgs.unassignTasks}">
<p:commandLink id="unassignTasks"
action="#{UserForm.resetTasksToOpen(item)}"
styleClass="#{empty UserForm.getTasksInProgress(item) ? 'ui-state-disabled' : ''}"
disabled="#{empty UserForm.getTasksInProgress(item)}"
update="@this"
rendered="#{SecurityAccessController.hasAuthorityToUnassignTasks()}">
update="@this">
<h:outputText><i class="fa fa-user-times"/></h:outputText>
<p:confirm message=" #{msgs.confirmUnassignTasks}" header="#{msgs.confirmRelease}"/>
</p:commandLink>
Expand Down

0 comments on commit fbe7555

Please sign in to comment.