Ignore:
Timestamp:
2023-10-16T16:23:07+13:00 (7 months ago)
Author:
anupama
Message:

Incremental change to allow user editing for any accounts who have collection editing powers (not just admin). Future changse would be a full overhaul as they'll happen in the document editor and are unlikely to use the new remove-metadata-array methods.

File:
1 edited

Legend:

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

    r38188 r38316  
    4545  <gsf:variable name="userCanDeleteComments">
    4646    <xsl:choose>
    47       <xsl:when test="/page/pageRequest/userInformation and (util:csvContains(/page/pageRequest/userInformation/@groups, 'administrator'))">1</xsl:when><xsl:otherwise>0</xsl:otherwise>
     47      <!--<xsl:when test="/page/pageRequest/userInformation and (util:csvContains(/page/pageRequest/userInformation/@groups, 'administrator'))">1</xsl:when><xsl:otherwise>0</xsl:otherwise>-->
     48      <xsl:when test="$canDoEditing = 'true'">1</xsl:when><xsl:otherwise>0</xsl:otherwise>
    4849    </xsl:choose>
    4950  </gsf:variable>
Note: See TracChangeset for help on using the changeset viewer.