Changeset 167


Ignore:
Timestamp:
12 Nov 2005, 16:17:03 (19 years ago)
Author:
joachim
Message:

=some fixes

Location:
waeup_product/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/WAeUPPermissions.py

    r152 r167  
    3232UniversityManage = "University Manage"
    3333setDefaultRoles(UniversityManage, ('Manager',
    34                                    'Owner',))
     34                                   ))
    3535#  - 'Student Manage' : Permission you need to manage Students
    3636#
  • waeup_product/trunk/skins/waeup_default/temporary_view_all.py

    r166 r167  
    1111request = context.REQUEST
    1212url0 = request.get('URL0')
     13#return context.temporary_view_all_form(psm=psm)
    1314if context.portal_membership.isAnonymousUser():
    1415    return context.temporary_view_all_form(psm=psm)
    1516else:
    16     if url0.find(uname) > 0 or 'UniversityManager' in roles:
     17    if url0.find(uname) > 0 or 'UniversityManager' in roles or 'Manager' in roles:
    1718        return context.temporary_view_all_form(psm=psm)
    18     elif 'Student' in roles:
    19         res = cat(id=uname)
    20         if len(res) > 0:
    21             return res[0].getObject().temporary_view_all_form(psm=psm)
     19    elif 'Student' in roles and 'StudentManager' not in roles:
     20        res = cat(pathindex="/portal/sections/students/%s" % uname)
     21        for r in res:
     22            if r.getPath().endswith("students/%s" % uname):
     23                return r.getObject().temporary_view_all_form(psm=psm)
    2224        return context.temporary_view_all_form(psm=psm)
Note: See TracChangeset for help on using the changeset viewer.