'user', 'requestData' => [] ]; } public function handler() { $userId = Controller::request('userId') * 1; $user = Controller::getLoggedUser(); if($userId && Controller::isStaffLogged(2)) { $user = User::getDataStore($userId); if($user->isNull()) throw new RequestException(ERRORS::INVALID_USER); } $user->setProperties([ 'xownCustomfieldvalueList' => $this->getCustomFieldValues() ]); $user->store(); Response::respondSuccess(); } }