From f1a3cabadbbc059ab0117fc27d098e475074e497 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 29 Jan 2013 22:12:18 +0100 Subject: [PATCH] Fixed error message if guests accessing forbidden action --- .../files/lib/data/AbstractDatabaseObjectAction.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.20.1