From cd8d499047babe7af85777ac9dbc2954363a760a Mon Sep 17 00:00:00 2001 From: Peter Thienel <thienel@data-quest.de> Date: Thu, 12 May 2022 10:06:03 +0000 Subject: [PATCH] =?UTF-8?q?Resolve=20"In=20den=20Rechtekonfigurationen=20f?= =?UTF-8?q?=C3=BCr=20MVV=20fehlt=20an=20Modulen=20und=20Studiengangteilen?= =?UTF-8?q?=20der=20Eintrag=20f=C3=BCr=20zugeordnete=20Personen"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #271 Merge request studip/studip!91 --- config/mvvconfig/mvv_modul.php | 24 ++++++++++++------------ config/mvvconfig/mvv_stgteil.php | 21 ++++++++++----------- 2 files changed, 22 insertions(+), 23 deletions(-) diff --git a/config/mvvconfig/mvv_modul.php b/config/mvvconfig/mvv_modul.php index 3ced73ddc7c..929fdf7943d 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 8a6e519f03a..9943ee761e0 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 -- GitLab