From 77ea994c0e2de8d8e72f92439d7eaa796612baa8 Mon Sep 17 00:00:00 2001
From: Matthias Schmidt <gravatronics@live.com>
Date: Tue, 16 Aug 2016 20:49:45 +0200
Subject: [PATCH] Fix ViewableLabelGroup::hasPermissions()

---
 .../files/lib/data/label/group/ViewableLabelGroup.class.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/wcfsetup/install/files/lib/data/label/group/ViewableLabelGroup.class.php b/wcfsetup/install/files/lib/data/label/group/ViewableLabelGroup.class.php
index 354560143d..250d71c477 100644
--- a/wcfsetup/install/files/lib/data/label/group/ViewableLabelGroup.class.php
+++ b/wcfsetup/install/files/lib/data/label/group/ViewableLabelGroup.class.php
@@ -232,11 +232,11 @@ class ViewableLabelGroup extends DatabaseObjectDecorator implements \Countable,
 	}
 	
 	/**
-	 * Returns false if this label group has no permissions at all.
+	 * Returns true if any permissions have been set for this label group.
 	 * 
-	 * @return      boolean
+	 * @return	boolean
 	 */
 	public function hasPermissions() {
-		return (empty($this->permissions['group']) && empty($this->permissions['user']));
+		return !empty($this->permissions['group']) || !empty($this->permissions['user']);
 	}
 }
-- 
2.20.1