diff --git a/application/Espo/Controllers/User.php b/application/Espo/Controllers/User.php index b023a0c5f3..acb1aef297 100644 --- a/application/Espo/Controllers/User.php +++ b/application/Espo/Controllers/User.php @@ -106,14 +106,6 @@ class User extends \Espo\Core\Controllers\Record return $this->getService('User')->passwordChangeRequest($userName, $emailAddress, $url); } - public function postActionGenerateNewApiKey($params, $data, $request) - { - if (empty($data->id)) throw new BadRequest(); - if (!$this->getUser()->isAdmin()) throw new Forbidden(); - - return $this->getRecordService()->generateNewApiKeyForEntity($data->id)->getValueMap(); - } - public function actionCreateLink($params, $data, $request) { if (!$this->getUser()->isAdmin()) throw new Forbidden();