From 4fce539c0a2712f81811fc07b0eaa7f4def4844d Mon Sep 17 00:00:00 2001 From: Rich Lott / Artful Robot Date: Mon, 2 Oct 2023 12:26:09 +0100 Subject: [PATCH] standalone: hacky api4 permissions commit (probably fix this) --- ext/standaloneusers/Civi/Api4/User.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/standaloneusers/Civi/Api4/User.php b/ext/standaloneusers/Civi/Api4/User.php index 5b6f7c37c1..7d5f6b67e9 100644 --- a/ext/standaloneusers/Civi/Api4/User.php +++ b/ext/standaloneusers/Civi/Api4/User.php @@ -55,11 +55,13 @@ class User extends Generic\DAOEntity { * Permissions are wide on this but are checked in validateValues. */ public static function permissions() { - $x=1; return [ 'default' => ['access CiviCRM'], 'passwordReset' => ['access password resets'], 'sendPasswordReset' => ['access password resets'], + + 'PasswordReset' => ['access password resets'], + 'SendPasswordReset' => ['access password resets'], ]; } -- 2.25.1