Ignore:
Timestamp:
2018-12-04T13:32:50+13:00 (5 years ago)
Author:
kjdon
Message:

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

File:
1 edited

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">
Note: See TracChangeset for help on using the changeset viewer.