Skip to content

Commit

Permalink
Merge pull request #787 from artfulrobot/standalone-user-role-change
Browse files Browse the repository at this point in the history
standalone: update applying admin role to administrator user
  • Loading branch information
artfulrobot authored Jul 3, 2023
2 parents ab0ca4c + 2472094 commit 4ee19ee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/config/standalone-clean/demo-user.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
];
$userID = \CRM_Core_BAO_CMSUser::create($params, $adminEmail);

\Civi\Api4\UserRole::create(FALSE)
->setValues(['role_id.name' => 'Administrator', 'user_id' => $userID])
->execute();
// @todo decide which permissions the demo user should have; create a role for those; apply the role to the user.
// This code can be added later once the data structures for roles etc. have settled.

});

0 comments on commit 4ee19ee

Please sign in to comment.