Changeset 2044

Show
Ignore:
Timestamp:
06/18/09 08:36:31 (9 months ago)
Author:
JensDiemer
Message:

filter menu with user permissions.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.9/pylucid_project/pylucid_plugins/admin_menu/templates/admin_menu/admin_top_menu.html

    r2037 r2044  
    2424<ul class="sf-menu"> 
    2525    <li class="current">{% lucidTag auth %}</li> 
    26     <li> 
    27         <li><a href="{{ edit_page_link }}" title="edit inline" id="edit_page" onclick="return get_pylucid_ajax_view('{{ edit_page_link }}');">{% trans 'edit page' %}</a></li> 
     26    {% if perms.pylucid.change_pagecontent and perms.pylucid.change_pagemeta %} 
     27    <li>       
     28        <a href="{{ edit_page_link }}" title="edit inline" id="edit_page" onclick="return get_pylucid_ajax_view('{{ edit_page_link }}');">{% trans 'edit page' %}</a> 
    2829        <ul> 
    2930            <li><a href="{{ edit_admin_panel_link }}">edit in admin panel</a></li> 
     
    3132        </ul> 
    3233    </li> 
     34    {% endif %} 
     35    {% if perms.pylucid.add_pagecontent and perms.pylucid.add_pagemeta %} 
    3336    <li> 
    3437        <a href="{{ new_page_link }}">{% trans 'new page' %}</a> 
    3538    </li> 
     39    {% endif %} 
     40    {% if user.is_staff %} 
    3641    <li> 
    3742        <a href="{{ admin_menu_link }}">{% trans 'admin menu' %}</a> 
     
    4045        </ul> 
    4146    </li> 
     47    {% endif %} 
    4248</ul> 
    4349{% endblock %}