Skip to content

Commit

Permalink
Change default profile view rights of members role #1691
Browse files Browse the repository at this point in the history
  • Loading branch information
Fasse committed Oct 9, 2024
1 parent 176f60d commit 7e6b440
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions adm_program/system/classes/Organization.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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'
Expand Down

0 comments on commit 7e6b440

Please sign in to comment.