Changeset 33506

Show
Ignore:
Timestamp:
24.09.2019 13:04:06 (3 weeks ago)
Author:
kjdon
Message:

need to check whether document editing is turned on, not just if the user is allowed to

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/document.xsl

    r33348 r33506  
    401401      </xsl:if> 
    402402      <xsl:variable name="canDoEditing"> 
    403         <xsl:if test="/page/pageRequest/userInformation and /page/pageRequest/userInformation/@editEnabled = 'true' and (util:contains(/page/pageRequest/userInformation/@groups, 'administrator') or util:contains(/page/pageRequest/userInformation/@groups, 'all-collections-editor') or util:contains(/page/pageRequest/userInformation/@groups, $thisCollectionEditor))">true</xsl:if> 
     403        <xsl:if test="$isEditingTurnedOn = '1' and (/page/pageRequest/userInformation and /page/pageRequest/userInformation/@editEnabled = 'true' and (util:contains(/page/pageRequest/userInformation/@groups, 'administrator') or util:contains(/page/pageRequest/userInformation/@groups, 'all-collections-editor') or util:contains(/page/pageRequest/userInformation/@groups, $thisCollectionEditor)))">true</xsl:if> 
    404404      </xsl:variable> 
    405405      <xsl:if test="$canDoEditing = 'true'">