Changeset 32651

Show
Ignore:
Timestamp:
04.12.2018 13:32:50 (10 days ago)
Author:
kjdon
Message:

renamed groupsContains to csvContains, as can be used for any comma separated list

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/layouts/header.xsl

    r32599 r32651  
    3333  <!-- is a user logged in, and do they have editing rights for this collection? --> 
    3434  <xsl:variable name="userHasEditPermission"> 
    35     <xsl:if test="/page/pageRequest/userInformation and (util:contains(/page/pageRequest/userInformation/@groups, 'administrator') or util:contains(/page/pageRequest/userInformation/@groups, 'all-collections-editor') or util:groupsContains(/page/pageRequest/userInformation/@groups, $thisCollectionEditor))">1</xsl:if> 
     35    <xsl:if test="/page/pageRequest/userInformation and (util:csvContains(/page/pageRequest/userInformation/@groups, 'administrator') or util:csvContains(/page/pageRequest/userInformation/@groups, 'all-collections-editor') or util:csvContains(/page/pageRequest/userInformation/@groups, $thisCollectionEditor))">1</xsl:if> 
    3636  </xsl:variable> 
    3737  <xsl:variable name="siteAdmin">