Changeset 33506


Ignore:
Timestamp:
2019-09-24T13:04:06+12:00 (5 years ago)
Author:
kjdon
Message:

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

File:
1 edited

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