Ignore:
Timestamp:
30 Sep 2012, 20:27:12 (12 years ago)
Author:
Henrik Bettermann
Message:

Add CCOfficer Role. The Computer Center Officer gets the same permissions as the
Portal Manager except the most dangerous ones.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/permissions.py

    r9186 r9259  
    196196    grok.name('waeup.UsersManager')
    197197    grok.title(u'Users Manager')
    198     grok.permissions('waeup.manageUsers')
     198    grok.permissions('waeup.manageUsers',
     199                     'waeup.editUser')
    199200
    200201class PortalManager(grok.Role):
    201202    grok.name('waeup.PortalManager')
    202203    grok.title(u'Portal Manager')
    203     grok.permissions('waeup.managePortal', 'waeup.manageUsers',
     204    grok.permissions('waeup.managePortal',
     205                     'waeup.manageUsers',
    204206                     'waeup.viewAcademics', 'waeup.manageAcademics',
    205207                     'waeup.manageACBatches',
    206                      'waeup.manageDataCenter', 'waeup.importData',
     208                     'waeup.manageDataCenter',
     209                     'waeup.importData',
    207210                     'waeup.managePortalConfiguration', 'waeup.viewApplication',
    208211                     'waeup.manageApplication', 'waeup.handleApplication',
     
    216219                     'waeup.viewHostels', 'waeup.manageHostels',
    217220                     'waeup.editUser'
     221                     )
     222
     223class CCOfficer(grok.Role):
     224    """The Computer Center Officer gets the same permissions as the
     225    Portal Manager except the most dangerous ones.
     226    """
     227    grok.name('waeup.CCOfficer')
     228    grok.title(u'Computer Center Officer')
     229    grok.permissions(#'waeup.managePortal',
     230                     #'waeup.manageUsers',
     231                     'waeup.viewAcademics', 'waeup.manageAcademics',
     232                     #'waeup.manageACBatches',
     233                     'waeup.manageDataCenter',
     234                     #'waeup.importData',
     235                     'waeup.managePortalConfiguration', 'waeup.viewApplication',
     236                     'waeup.manageApplication', 'waeup.handleApplication',
     237                     'waeup.viewApplicantsTab', 'waeup.payApplicant',
     238                     'waeup.viewApplicationStatistics',
     239                     'waeup.viewStudent', 'waeup.manageStudent',
     240                     'waeup.clearStudent', 'waeup.payStudent',
     241                     'waeup.uploadStudentFile', 'waeup.showStudents',
     242                     'waeup.viewStudentsContainer','waeup.viewStudentsTab',
     243                     'waeup.handleAccommodation',
     244                     'waeup.viewHostels', 'waeup.manageHostels',
     245                     #'waeup.editUser'
    218246                     )
    219247
  • main/waeup.kofa/trunk/src/waeup/kofa/permissions.txt

    r9002 r9259  
    3939    >>> from waeup.kofa.permissions import get_waeup_roles
    4040    >>> len(list(get_waeup_roles()))
    41     15
     41    16
    4242
    4343    >>> len(list(get_waeup_roles(also_local=True)))
    44     29
     44    30
    4545
    4646
     
    5959     u'waeup.Applicant',
    6060     u'waeup.ApplicationsOfficer',
     61     u'waeup.CCOfficer',
    6162     u'waeup.DataCenterManager',
    6263     u'waeup.ImportManager',
Note: See TracChangeset for help on using the changeset viewer.