Changeset 12847 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 3 Apr 2015, 17:45:48 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/permissions.py
r10226 r12847 24 24 25 25 class HandleApplication(grok.Permission): 26 """The HandleApplication permission is reserved for applicants. 27 Applicants 'handle' their data. Officers 'manage' the data. 28 """ 26 29 grok.name('waeup.handleApplication') 27 30 28 31 class ViewApplication(grok.Permission): 32 """The ViewApplication permission allows to view application records. 33 """ 29 34 grok.name('waeup.viewApplication') 30 35 … … 36 41 37 42 class ManageApplication(grok.Permission): 43 """The ManageApplication permission allows to edit the data. This 44 permission is reserved for officers and portal managers. 45 """ 38 46 grok.name('waeup.manageApplication') 39 47 40 48 class ViewApplicationStatistics(grok.Permission): 49 """The ViewApplicationStatistics permission allows to perform statistical 50 evaluations. Only portal managers have this permission. 51 """ 41 52 grok.name('waeup.viewApplicationStatistics') 42 53 43 54 class PayApplicant(grok.Permission): 55 """The PayApplicant permission allows to add an online payment ticket. 56 """ 44 57 grok.name('waeup.payApplicant') 45 58 46 59 # Local role 60 47 61 class ApplicationOwner(grok.Role): 62 """An applicant 'owns' her/his application record and 63 gains permissions to handle the record, upload a passport picture or 64 add payment tickets. 65 """ 48 66 grok.name('waeup.local.ApplicationOwner') 49 67 grok.title(u'Application Owner') 50 grok.permissions('waeup.handleApplication', 'waeup.viewApplication', 68 grok.permissions('waeup.handleApplication', 69 'waeup.viewApplication', 51 70 'waeup.payApplicant') 52 71 53 # Site role 72 # Site roles 54 73 55 74 class ApplicantRole(grok.Role): 75 """This role is dedicated to applicants only. It defines the permissions 76 an applicant gains portal-wide. 77 """ 56 78 grok.name('waeup.Applicant') 57 79 grok.permissions('waeup.viewAcademics', 'waeup.viewMyApplicationDataTab', … … 59 81 60 82 class ApplicationsOfficer(grok.Role): 83 """The Applications Officer is allowed to view all application records. 84 """ 61 85 grok.name('waeup.ApplicationsOfficer') 62 86 grok.title(u'Applications Officer (view only)') … … 64 88 65 89 class ApplicationsManager(grok.Role): 90 """The Applications Officer is allowed to edit all application records. 91 The role allows also to add payment tickets. 92 """ 66 93 grok.name('waeup.ApplicationsManager') 67 94 grok.title(u'Applications Manager')
Note: See TracChangeset for help on using the changeset viewer.