Skip to content

Commit

Permalink
standaloneusers - allow users with cms:administer users pass ACL chec…
Browse files Browse the repository at this point in the history
…k for User.sendPasswordResetEmail
  • Loading branch information
ufundo committed Dec 4, 2024
1 parent 31890cb commit dce0f6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/standaloneusers/CRM/Standaloneusers/BAO/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public static function self_civi_api4_authorizeRecord(AuthorizeRecordEvent $e):
elseif ($action === 'create') {
$e->setAuthorized($mayAdminUsers);
}
elseif ($action === 'sendPasswordResetEmail') {
$e->setAuthorized($mayAdminUsers);
}
else {
// Is there another write action we don't know about? If so, play it safe and say No.
$e->setAuthorized(FALSE);
Expand Down

0 comments on commit dce0f6d

Please sign in to comment.