diff --git a/src/app/user/controllers/SignatureController.php b/src/app/user/controllers/SignatureController.php index 851b218e3b8c5b366b1dbbe92416cf9095d8f091..36561906c1608b0e5b4ba3a4a5cd6846cead6722 100755 --- a/src/app/user/controllers/SignatureController.php +++ b/src/app/user/controllers/SignatureController.php @@ -223,10 +223,6 @@ class SignatureController return $response->withStatus(403)->withJson(['errors' => 'Privilege forbidden']); } - if (!UserController::hasRightByUserId(['activeUserId' => $GLOBALS['id'], 'targetUserId' => $args['id']]) && $GLOBALS['id'] !== $args['id']) { - return $response->withStatus(403)->withJson(['errors' => 'Privilege forbidden']); - } - $user = UserModel::getById(['select' => [1], 'id' => $args['id']]); if (empty($user)) { return $response->withStatus(400)->withJson(['errors' => 'User does not exist']);