Skip to content

Commit 9e25c29

Browse files
committed
MIR-1462 Do not use xalan in user-actions-base.xsl
1 parent 9b68f5e commit 9e25c29

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

mir-module/src/main/resources/xsl/user-actions-base.xsl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xalan="http://xml.apache.org/xalan"
4-
xmlns:acl="xalan://org.mycore.access.MCRAccessManager"
5-
xmlns:const="xalan://org.mycore.user2.MCRUser2Constants"
6-
exclude-result-prefixes="xsl xalan acl const">
3+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="xsl">
74

85
<xsl:import href="xslImport:userProfileActionsBase:user-actions-base.xsl"/>
96

@@ -14,7 +11,8 @@
1411
<xsl:variable name="isCurrentUser" select="$CurrentUser = $uid"/>
1512

1613
<xsl:if test="(string-length($step) = 0) or ($step = 'changedPassword')">
17-
<xsl:variable name="isUserAdmin" select="acl:checkPermission(const:getUserAdminPermission())"/>
14+
<xsl:variable name="isUserAdmin" select="document('checkPermission:POOLPRIVILEGE:administrate-users')/boolean = 'true'"/>
15+
1816
<xsl:choose>
1917
<xsl:when test="$isUserAdmin">
2018
<a class="btn btn-secondary"

0 commit comments

Comments
 (0)