Skip to content

Commit

Permalink
Merge pull request #6400 from slub/render_only_on_right_authority
Browse files Browse the repository at this point in the history
Render panelGroup only if user has the right authority
  • Loading branch information
solth authored Feb 7, 2025
2 parents f2163b9 + fbe7555 commit 1dec044
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 1dec044

Please sign in to comment.