From 7e6b440b5c055a3165bee7520d58a9c2c2cc0560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fa=C3=9Fbender?= Date: Wed, 9 Oct 2024 22:15:41 +0200 Subject: [PATCH] Change default profile view rights of members role #1691 --- adm_program/system/classes/Organization.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/adm_program/system/classes/Organization.php b/adm_program/system/classes/Organization.php index ad86757c24..63413dd2f2 100644 --- a/adm_program/system/classes/Organization.php +++ b/adm_program/system/classes/Organization.php @@ -231,6 +231,7 @@ public function createBasicData(int $userId) $roleAdministrator->setValue('rol_profile', 1); $roleAdministrator->setValue('rol_all_lists_view', 1); $roleAdministrator->setValue('rol_administrator', 1); + $roleAdministrator->setValue('rol_view_memberships', TableRoles::VIEW_LOGIN_USERS); $roleAdministrator->save(); // Create role member @@ -242,6 +243,7 @@ public function createBasicData(int $userId) $roleMember->setValue('rol_mail_this_role', 2); $roleMember->setValue('rol_profile', 1); $roleMember->setValue('rol_default_registration', 1); + $roleMember->setValue('rol_view_memberships', TableRoles::VIEW_NOBODY); $roleMember->save(); // Create role board @@ -258,6 +260,7 @@ public function createBasicData(int $userId) $roleManagement->setValue('rol_mail_this_role', 2); $roleManagement->setValue('rol_profile', 1); $roleManagement->setValue('rol_all_lists_view', 1); + $roleManagement->setValue('rol_view_memberships', TableRoles::VIEW_LOGIN_USERS); $roleManagement->save(); // Create membership for user in role 'Administrator' and 'Members'