From: Alexander Ebert Date: Tue, 29 Jan 2013 21:12:18 +0000 (+0100) Subject: Fixed error message if guests accessing forbidden action X-Git-Tag: 2.0.0_Beta_1~528 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f1a3cabadbbc059ab0117fc27d098e475074e497;p=GitHub%2FWoltLab%2FWCF.git Fixed error message if guests accessing forbidden action --- diff --git a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php index 453bc025b1..c89d4ba192 100644 --- a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php +++ b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php @@ -1,7 +1,6 @@ * @package com.woltlab.wcf * @subpackage data @@ -143,7 +142,7 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID 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