source: main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/permissions.py @ 16827

Last change on this file since 16827 was 13856, checked in by Henrik Bettermann, 8 years ago

Add FinancialClearanceOfficer? role. Only Financial Clearance Officers are allowed to print slips with signature fields.

  • Property svn:keywords set to Id
File size: 1.5 KB
RevLine 
[13620]1## $Id: permissions.py 13856 2016-05-04 07:14:34Z henrik $
2##
3## Copyright (C) 2011 Uli Fouquet & Henrik Bettermann
4## This program is free software; you can redistribute it and/or modify
5## it under the terms of the GNU General Public License as published by
6## the Free Software Foundation; either version 2 of the License, or
7## (at your option) any later version.
8##
9## This program is distributed in the hope that it will be useful,
10## but WITHOUT ANY WARRANTY; without even the implied warranty of
11## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12## GNU General Public License for more details.
13##
14## You should have received a copy of the GNU General Public License
15## along with this program; if not, write to the Free Software
16## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17##
18"""
19More permissions and roles for the students section.
20"""
21import grok
22
23
24class ClearStudentFinancially(grok.Permission):
25    """The ClearStudentFinancially permission is needed to clear students
26    financially or to reject financial clearance. This permission is
[13634]27    meant for financial clearance officers.
[13620]28    """
29    grok.name('waeup.clearStudentFinancially')
30
31
[13856]32class FinancialClearanceOfficer(grok.Role):
33    """Financial Clearance Officers are also allowed to clear
34    students financially. Usually this role is assigned together
35    with the BursaryOfficer role and the StudentsOfficer role.
[13620]36    """
[13856]37    grok.name('waeup.FinancialClearanceOfficer')
38    grok.title(u'Financial Clearance Officer')
39    grok.permissions('waeup.clearStudentFinancially')
Note: See TracBrowser for help on using the repository browser.