Standalone civi-setup: grant more permissions to anon, use ts
authorMathieu Lu <mathieu@symbiotic.coop>
Wed, 26 Jul 2023 14:05:49 +0000 (10:05 -0400)
committerMathieu Lutfy <mathieu@bidon.ca>
Wed, 26 Jul 2023 14:06:40 +0000 (10:06 -0400)
setup/plugins/init/StandaloneUsers.civi-setup.php

index 24e66ce87e18c29766e44dd4c73acfe6f3d0b378..573c4b777a32a0106f60dfe664ab0b88dae5bdb4 100644 (file)
@@ -47,13 +47,13 @@ if (!defined('CIVI_SETUP')) {
       ->setRecords([
         [
           'name' => 'everyone',
-          'label' => 'Everyone, including anonymous users',
+          'label' => ts('Everyone, including anonymous users'),
           // Provide default open permissions
-          'permissions' => ['CiviMail subscribe/unsubscribe pages', 'make online contributions'],
+          'permissions' => ['CiviMail subscribe/unsubscribe pages', 'make online contributions', 'view event info', 'register for events'],
         ],
         [
           'name' => 'admin',
-          'label' => 'Administrator',
+          'label' => ts('Administrator'),
           'permissions' => array_keys(\CRM_Core_SelectValues::permissions()),
         ],
       ])