Ignore:
Timestamp:
2012-02-24T13:50:39+13:00 (12 years ago)
Author:
sjm84
Message:

The document editor functionality can no longer be used if you are not authorised to use it

File:
1 edited

Legend:

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

    r25143 r25144  
    100100           
    101101            <div id="doc{@nodeID}" class="sectionContainer"><!-- *** -->
    102                 <xsl:if test="/page/pageRequest/paramList/param[@name = 'documentbasket']/@value = 'on'">
     102                <xsl:if test="/page/pageRequest/paramList/param[@name = 'documentbasket']/@value = 'on' and /page/pageRequest/userInformation 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))">
    103103                    <table id="meta{@nodeID}">
    104104                        <xsl:attribute name="style">
     
    137137    <!-- the page content -->
    138138    <xsl:template match="/page/pageResponse/document">
    139         <xsl:if test="/page/pageRequest/paramList/param[@name = 'documentbasket']/@value = 'on'">
     139        <xsl:if test="/page/pageRequest/paramList/param[@name = 'documentbasket']/@value = 'on' and /page/pageRequest/userInformation 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))">
    140140            <script type="text/javascript" src="interfaces/{$interface_name}/js/documentmaker_scripts.js"><xsl:text> </xsl:text></script>
    141141            <script type="text/javascript" src="interfaces/{$interface_name}/js/documentmaker_scripts_util.js"><xsl:text> </xsl:text></script>
    142         </xsl:if>
    143        
    144         <xsl:if test="/page/pageRequest/paramList/param[@name = 'documentbasket']/@value = 'on'">
    145142            <gsf:metadata name="all"/>
    146143        </xsl:if>
     
    165162            <xsl:call-template name="documentBerryForDocumentPage"/>
    166163           
    167             <xsl:if test="/page/pageRequest/paramList/param[@name = 'documentbasket']/@value = 'on'">
     164            <xsl:if test="/page/pageRequest/paramList/param[@name = 'documentbasket']/@value = 'on' and /page/pageRequest/userInformation 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))">
    168165                <table style="width:100%"><tr>
    169166                    <td id="editBarLeft" style="width:70%"><xsl:text> </xsl:text></td>
Note: See TracChangeset for help on using the changeset viewer.