Fixed dislike validation
authorMarcel Werk <burntime@woltlab.com>
Sat, 29 Mar 2014 19:36:15 +0000 (20:36 +0100)
committerMarcel Werk <burntime@woltlab.com>
Sat, 29 Mar 2014 19:36:15 +0000 (20:36 +0100)
wcfsetup/install/files/lib/data/like/LikeAction.class.php

index d754ab4a0adce3bb30635b60a88ac5671ca8f7ec..59c929e8f686a9af8fa99d064260f8a4709f3d93 100644 (file)
@@ -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();
        }