1 | # (C) Copyright 2005 AixtraWare <http://aixtraware.de> |
---|
2 | # Author: Joachim Schmitz <js@aixtraware.de> |
---|
3 | # |
---|
4 | # This program is free software; you can redistribute it and/or modify |
---|
5 | # it under the terms of the GNU General Public License version 2 as published |
---|
6 | # by the Free Software Foundation. |
---|
7 | # |
---|
8 | # This program is distributed in the hope that it will be useful, |
---|
9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
11 | # GNU General Public License for more details. |
---|
12 | # |
---|
13 | # You should have received a copy of the GNU General Public License |
---|
14 | # along with this program; if not, write to the Free Software |
---|
15 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
16 | # 02111-1307, USA. |
---|
17 | # |
---|
18 | # $Id: permissions.py 80 2005-10-22 13:43:45Z joachim $ |
---|
19 | |
---|
20 | __author__ = "Joachim Schmitz <js@aixtraware.de>" |
---|
21 | |
---|
22 | """WAeUP Student Permissions |
---|
23 | |
---|
24 | # - 'University Manage' : Permission you need to manage a University |
---|
25 | # |
---|
26 | # - 'Faculty Manage' : Permission you need to manage a Faculty |
---|
27 | # |
---|
28 | # - 'Department Manage' : Permission you need to manage a Department |
---|
29 | # |
---|
30 | |
---|
31 | """ |
---|
32 | |
---|
33 | from Products.CMFCore.permissions import setDefaultRoles |
---|
34 | |
---|
35 | universityManage = "University Manage" |
---|
36 | setDefaultRoles(universityManage, ('Manager', 'Owner')) |
---|
37 | facultyManage = "Faculty Manage" |
---|
38 | setDefaultRoles(facultyManage, ('Manager', 'Owner')) |
---|
39 | departmentManage = "Department Manage" |
---|
40 | setDefaultRoles(departmentManage, ('Manager', 'Owner')) |
---|
41 | |
---|