Admin_UserController::uploadCurrentUserImageAction PHP Метод

uploadCurrentUserImageAction() публичный Метод

    public function uploadCurrentUserImageAction()
    {
        $user = $this->getUser();
        if ($user != null) {
            if ($user->getId() == $this->getParam("id")) {
                $this->uploadImageAction();
            } else {
                Logger::warn("prevented save current user, because ids do not match. ");
                $this->_helper->json(false);
            }
        } else {
            $this->_helper->json(false);
        }
    }