standalone: hacky api4 permissions commit (probably fix this)
authorRich Lott / Artful Robot <code.commits@artfulrobot.uk>
Mon, 2 Oct 2023 11:26:09 +0000 (12:26 +0100)
committerRich Lott / Artful Robot <code.commits@artfulrobot.uk>
Mon, 2 Oct 2023 11:26:09 +0000 (12:26 +0100)
ext/standaloneusers/Civi/Api4/User.php

index 5b6f7c37c1571c0cd67c6f5e88724702fa516a9c..7d5f6b67e98fca7a1828a112dae9cc8b21652e76 100644 (file)
@@ -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'],
     ];
   }