Skip to content

Commit

Permalink
standaloneusers - remove explicit definition of custom API actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ufundo committed Dec 2, 2024
1 parent 81a9c0a commit f4c6271
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions ext/standaloneusers/Civi/Api4/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
namespace Civi\Api4;

use Civi\Api4\Action\User\Create;
use Civi\Api4\Action\User\Login;
use Civi\Api4\Action\User\Save;
use Civi\Api4\Action\User\SendPasswordReset;
use Civi\Api4\Action\User\Update;

/**
Expand All @@ -16,15 +14,6 @@
*/
class User extends Generic\DAOEntity {

/**
* @param bool $checkPermissions
* @return \Civi\Api4\Action\User\Login
*/
public static function login($checkPermissions = TRUE): Login {
return (new Login(static::getEntityName(), __FUNCTION__))
->setCheckPermissions($checkPermissions);
}

/**
* @param bool $checkPermissions
* @return \Civi\Api4\Action\User\Save
Expand Down Expand Up @@ -52,15 +41,6 @@ public static function update($checkPermissions = TRUE): Update {
->setCheckPermissions($checkPermissions);
}

/**
* @param bool $checkPermissions
* @return \Civi\Api4\Action\User\SendPasswordReset
*/
public static function sendPasswordReset($checkPermissions = TRUE): SendPasswordReset {
return (new SendPasswordReset(static::getEntityName(), __FUNCTION__))
->setCheckPermissions($checkPermissions);
}

/**
* Permissions are only used to *authorize* API actions for the
* current user. This authorization knows nothing of the parameters,
Expand Down

0 comments on commit f4c6271

Please sign in to comment.