Changeset 26563


Ignore:
Timestamp:
2012-12-06T16:45:59+13:00 (11 years ago)
Author:
sjm84
Message:

The debug scripts can now only be used by administrators

File:
1 edited

Legend:

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

    r26503 r26563  
    8383        <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:contains(/page/pageRequest/userInformation/@groups, $thisCollectionEditor))">
    8484            <xsl:call-template name="init-direct-edit"/>
     85            <script type="text/javascript" src="interfaces/{$interface_name}/js/debug_scripts.js"><xsl:text> </xsl:text></script>
    8586        </xsl:if>
    86        
    87         <script type="text/javascript" src="interfaces/{$interface_name}/js/debug_scripts.js"><xsl:text> </xsl:text></script>
    8887       
    8988        <xsl:call-template name="setup-gs-variable"/>
Note: See TracChangeset for help on using the changeset viewer.