Ignore:
Timestamp:
24 Nov 2011, 09:20:13 (13 years ago)
Author:
Henrik Bettermann
Message:

Reorganise permissions:

The navigation viewlets now manage the permission requirements themselves. No need to do this in pagetemplates.

Rename permission waeup.View to waeup.viewAcademics because it only refers to the academic section.

Add permission waeup.Authenticated (which is used in students). The StudentRecordOwner? explicitly needs this permission. Otherwise the MyData? tab disappears when changing the password.

Roles do not need to get the waeup.Public permission. This is already guaranteed in site.zcml.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/studentsitelayout.pt

    r7129 r7184  
    2929            </span> </h1>
    3030          <div id="navigation" class="yui-navset" style="text-align:right;">
    31             <ul id="primary-navigation" tal:condition="layout/isAuthenticated">
     31            <ul id="primary-navigation">
     32              <tal:primary_nav content="structure provider:primary_nav" />
    3233              <tal:primary_nav content="structure provider:primary_nav_student" />
    33             </ul>
    34             <ul id="primary-navigation" tal:condition="not: layout/isAuthenticated">
    35               <tal:primary_nav content="structure provider:primary_nav" />
    3634            </ul>
    3735            <ul id="user-navigation">
Note: See TracChangeset for help on using the changeset viewer.