<?php
namespace wcf\data;
use wcf\system\event\EventHandler;
-use wcf\system\exception\IllegalLinkException;
use wcf\system\exception\PermissionDeniedException;
use wcf\system\exception\SystemException;
use wcf\system\exception\UserInputException;
* Default implementation for DatabaseObject-related actions.
*
* @author Alexander Ebert
- * @copyright 2001-2012 WoltLab GmbH
+ * @copyright 2001-2013 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package com.woltlab.wcf
* @subpackage data
public function validateAction() {
// validate if user is logged in
if (!WCF::getUser()->userID && !in_array($this->getActionName(), $this->allowGuestAccess)) {
- throw new IllegalLinkException();
+ throw new PermissionDeniedException();
}
// validate action name