'staff_1', 'requestData' => [ 'userId' => [ 'validation' => DataValidator::dataStoreId('user'), 'error' => ERRORS::INVALID_USER ] ] ]; } public function handler() { $user = User::getDataStore(Controller::request('userId')); if(!$user->disabled) { throw new RequestException(ERRORS::ALREADY_ENABLED); } $user->disabled = 0; $user->store(); Response::respondSuccess(); } }