source: main/kofacustom.pcn/trunk/src/kofacustom/pcn/permissions.py @ 11835

Last change on this file since 11835 was 11835, checked in by Henrik Bettermann, 10 years ago

Remove permissions to make student stuff invisible.

  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1## $Id: permissions.py 11835 2014-10-14 05:55:55Z henrik $
2##
3## Copyright (C) 2012 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##
18import grok
19from waeup.kofa.permissions import CCOfficer, PortalManager
20
21
22class CustomCCOfficer(CCOfficer):
23    """ Permissions of Computer Center members.
24
25    This is basically a copy of the the PortalManager. We exclude some
26    permissions by commenting them out.
27    """
28
29    grok.name('waeup.CCOfficer')
30    grok.title(u'Our CC Officer')
31
32    grok.permissions('waeup.managePortal',
33                     'waeup.manageUsers',
34                     'waeup.viewAcademics', 'waeup.manageAcademics',
35                     #'waeup.manageACBatches',
36                     'waeup.manageDataCenter',
37                     #'waeup.importData',
38                     'waeup.exportData',
39                     'waeup.viewTranscript',
40                     'waeup.managePortalConfiguration', 'waeup.viewApplication',
41                     'waeup.manageApplication', 'waeup.handleApplication',
42                     'waeup.viewApplicantsTab', 'waeup.payApplicant',
43                     'waeup.viewApplicationStatistics',
44                     #'waeup.viewStudent', 'waeup.manageStudent',
45                     #'waeup.clearStudent', 'waeup.payStudent',
46                     #'waeup.uploadStudentFile', 'waeup.showStudents',
47                     #'waeup.editScores',
48                     #'waeup.triggerTransition',
49                     #'waeup.viewStudentsContainer','waeup.viewStudentsTab',
50                     #'waeup.handleAccommodation',
51                     #'waeup.viewHostels', 'waeup.manageHostels',
52                     'waeup.editUser',
53                     #'waeup.loginAsStudent',
54                     'waeup.manageReports',
55                     'waeup.manageJobs',
56                     )
Note: See TracBrowser for help on using the repository browser.