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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.