aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorPeter Thienel <thienel@data-quest.de>2022-05-12 10:06:03 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2022-05-12 10:06:03 +0000
commitcd8d499047babe7af85777ac9dbc2954363a760a (patch)
treefa33f3168e8901df01493d7579fa8e5a117b0f62 /config
parenteac0fdfe637de9c9d7bf71c19d9cb20fb68d763c (diff)
Resolve "In den Rechtekonfigurationen für MVV fehlt an Modulen und Studiengangteilen der Eintrag für zugeordnete Personen"
Closes #271 Merge request studip/studip!91
Diffstat (limited to 'config')
-rw-r--r--config/mvvconfig/mvv_modul.php24
-rw-r--r--config/mvvconfig/mvv_stgteil.php21
2 files changed, 22 insertions, 23 deletions
diff --git a/config/mvvconfig/mvv_modul.php b/config/mvvconfig/mvv_modul.php
index 3ced73d..929fdf7 100644
--- a/config/mvvconfig/mvv_modul.php
+++ b/config/mvvconfig/mvv_modul.php
@@ -8,7 +8,7 @@
* 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
@@ -19,33 +19,33 @@
/**
* 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.
@@ -419,16 +419,16 @@ $privileges = [
'MVVFreigabe' => 7
]
],
- 'assigned_users' => [
+ 'contact_assignments' => [
'planung' => [
'MVVEntwickler' => 7,
- 'MVVRedakteur' => 3,
+ 'MVVRedakteur' => 7,
'MVVTranslator' => 1,
'MVVFreigabe' => 7
],
'genehmigt' => [
'MVVEntwickler' => 7,
- 'MVVRedakteur' => 3,
+ 'MVVRedakteur' => 7,
'MVVTranslator' => 1,
'MVVFreigabe' => 7
]
@@ -513,7 +513,7 @@ $privileges = [
],
// folgende Konfigurationen gelten für bestimmte Funktionen,
// die auf das Objekt angewendet werden dürfen (oder eben nicht).
-
+
// Kopieren von Modulen
'copy_module' => [
'planung' => [
diff --git a/config/mvvconfig/mvv_stgteil.php b/config/mvvconfig/mvv_stgteil.php
index 8a6e519..9943ee7 100644
--- a/config/mvvconfig/mvv_stgteil.php
+++ b/config/mvvconfig/mvv_stgteil.php
@@ -9,7 +9,7 @@
* 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
@@ -20,33 +20,33 @@
/**
* 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.
@@ -133,11 +133,11 @@ $privileges = [
]
],
// verknüpfte Objekte
- 'fachberater_assignments' => [
+ 'contact_assignments' => [
'default' => [
'MVVEntwickler' => 7,
'MVVRedakteur' => 7,
- 'MVVTranslator' => 1,
+ 'MVVTranslator' => 3,
'MVVFreigabe' => 7
]
],
@@ -151,4 +151,3 @@ $privileges = [
]
]
];
- \ No newline at end of file