Changeset 26563

Show
Ignore:
Timestamp:
06.12.2012 16:45:59 (7 years ago)
Author:
sjm84
Message:

The debug scripts can now only be used by administrators

Files:
1 modified

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"/>