1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
<?php
/**
* mvv_modulteil_language.php
* Configures the permissions for the assignment of languages to Modulteile
* (table mvv_modulteil_language)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* @author Peter Thienel <thienel@data-quest.de>
* @license http://www.gnu.org/licenses/gpl-2.0.html GPL version 2
* @category Stud.IP
* @since 3.5
*/
/**
* Permissions
* ============
*
* read: MVVPlugin::PERM_READ | 1
* read && write: MVVPlugin::PERM_WRITE | 3
* read && write && create && delete: MVVPlugin::PERM_CREATE | 7
*
* Structure
* ==========
*
* ['default_table' => [name_of_role => permission]]
* Permissions for the object itself regardless of its status.
* Every tuple defines the permission for a different role (the role of a user
* who wants to handle this object).
*
* ['default_fields' => [name_of_role => permission]]
* Default permissions for all fields of this object regardless of its status.
* Maybe overwritten by an entry for a single field.
* Every tuple defines the permission for a different role (the role of a user
* who wants to handle this object).
*
* ['fields' => ... ]
* Permissions for a single field of this object (db_fields and relations of
* the SORM-object). Overwites above declaration for this field.
*
* ['fields' => name_of_field ['default' => [name_of_role => permission]]]
* Default permission for one field for every given role regardless of
* object's status.
*
* ['fields' => name_of_field [name_of_status => [name_of_role => permission]]]
* Permission for one field of the object with indicated status for every
* given role. Overwrites above declaration.
*
*/
// Tabelle mvv_modulteil_language
$privileges = [
'lock_status' => [
'ausgelaufen'
],
'default_table' => [
'MVVEntwickler' => 1,
'MVVRedakteur' => 1,
'MVVTranslator' => 1,
'MVVFreigabe' => 1
],
'table' => [
'planung' => [
'MVVEntwickler' => 7,
'MVVRedakteur' => 1,
'MVVTranslator' => 1,
'MVVFreigabe' => 7
],
'genehmigt' => [
'MVVEntwickler' => 7,
'MVVRedakteur' => 1,
'MVVTranslator' => 1,
'MVVFreigabe' => 7
],
'ausgelaufen' => [
'MVVEntwickler' => 1,
'MVVRedakteur' => 1,
'MVVTranslator' => 1,
'MVVFreigabe' => 1
]
],
'default_fields' => [
'MVVEntwickler' => 1,
'MVVRedakteur' => 1,
'MVVTranslator' => 1,
'MVVFreigabe' => 1
],
'fields' => [
'position' => [
'planung' => [
'MVVEntwickler' => 3,
'MVVRedakteur' => 3,
'MVVTranslator' => 1,
'MVVFreigabe' => 3
],
'genehmigt' => [
'MVVEntwickler' => 3,
'MVVRedakteur' => 1,
'MVVTranslator' => 1,
'MVVFreigabe' => 3
]
]
]
];
|