Changeset 25565


Ignore:
Timestamp:
2012-05-10T14:41:14+12:00 (12 years ago)
Author:
sjm84
Message:

This page will now display an "Accessed Denied" message when a non-admin/collection-editor

File:
1 edited

Legend:

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

    r25564 r25565  
    2323        <!-- Make sure the user is allowed to use this functionality -->
    2424        <xsl:choose>
    25             <xsl:when test="util:getGlobalProperty('disable.collection.building') = 'false' 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))">
     25            <xsl:when test="util:equals(util:getGlobalProperty('disable.collection.building'),'false') 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))">
    2626                <script type="text/javascript" src="interfaces/{$interface_name}/js/documentmaker_scripts.js"><xsl:text> </xsl:text></script>
    2727                <script type="text/javascript" src="interfaces/{$interface_name}/js/documentmaker_scripts_dd.js"><xsl:text> </xsl:text></script>
     
    4242                <div>
    4343                    <xsl:choose>
    44                         <xsl:when test="util:getGlobalProperty('disable.collection.building') = 'true'">
     44                        <xsl:when test="util:equals(util:getGlobalProperty('disable.collection.building'),'true')">
    4545                            <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'db.no_collection_building')"/>
    4646                        </xsl:when>
Note: See TracChangeset for help on using the changeset viewer.