Ignore:
Timestamp:
25 Nov 2011, 14:25:43 (13 years ago)
Author:
Henrik Bettermann
Message:

Restrict view access for clearance officers only to students which can be cleared by the officer. No further site role is required (see comment in browser_test)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_browser.py

    r7189 r7201  
    659659        # Create clearance officer
    660660        self.app['users'].addUser('mrclear', 'mrclearsecret')
    661         # Clearance officers need to get the StudentsOfficer site role
    662         prmglobal = IPrincipalRoleManager(self.app)
    663         prmglobal.assignRoleToPrincipal('waeup.StudentsOfficer', 'mrclear')
     661        # Clearance officers need not necessarily to get
     662        # the StudentsOfficer site role
     663        #prmglobal = IPrincipalRoleManager(self.app)
     664        #prmglobal.assignRoleToPrincipal('waeup.StudentsOfficer', 'mrclear')
    664665        # Assign local ClearanceOfficer role
    665666        department = self.app['faculties']['fac1']['dep1']
     
    679680            '...<div>Academics Officer (view only)</div>...',
    680681            self.browser.contents)
    681         self.assertMatches(
    682             '...<div>Students Officer (view only)</div>...',
    683             self.browser.contents)
     682        #self.assertMatches(
     683        #    '...<div>Students Officer (view only)</div>...',
     684        #    self.browser.contents)
    684685        # But not his local role ...
    685686        self.assertFalse('Clearance Officer' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.