From d39b7b8f4c87e80394a086134c6332f10e0ef140 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sat, 29 Mar 2014 20:36:15 +0100 Subject: [PATCH] Fixed dislike validation --- wcfsetup/install/files/lib/data/like/LikeAction.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/lib/data/like/LikeAction.class.php b/wcfsetup/install/files/lib/data/like/LikeAction.class.php index d754ab4a0a..59c929e8f6 100644 --- a/wcfsetup/install/files/lib/data/like/LikeAction.class.php +++ b/wcfsetup/install/files/lib/data/like/LikeAction.class.php @@ -131,6 +131,10 @@ class LikeAction extends AbstractDatabaseObjectAction { * @see \wcf\data\like\LikeAction::validateLike() */ public function validateDislike() { + if (!LIKE_ENABLE_DISLIKE) { + throw new PermissionDeniedException(); + } + $this->validateLike(); } -- 2.20.1