From: Benni Mack Date: Fri, 26 Feb 2010 13:36:24 +0000 (+0000) Subject: Fixed bug #13493: Cleanup return value in t3lib_userauthgroup check() (Thanks to... X-Git-Tag: TYPO3_4-4-0alpha2~42 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/86eeee031b52f1dd22861cd8cb938dcc4b3d609f Fixed bug #13493: Cleanup return value in t3lib_userauthgroup check() (Thanks to Georg Ringer) git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7047 709f56b5-9817-0410-a4d7-c38de5d9e867 --- diff --git a/ChangeLog b/ChangeLog index b69e0f74853d..0306d47d7216 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2010-02-26 Benjamin Mack + * Fixed bug #13493: Cleanup return value in t3lib_userauthgroup check() (Thanks to Georg Ringer) * Fixed bug #12849: Element wizard & web_list.allowedNewTables doesn't respect hiding pages (Thanks to Georg Ringer) * Fixed bug #13611: Replace calls to t3lib_div:: within t3lib_div to self:: due to performance reasons (Thanks to Georg Ringer) diff --git a/t3lib/class.t3lib_userauthgroup.php b/t3lib/class.t3lib_userauthgroup.php index e65c5dc82c7c..82c991ed12a5 100644 --- a/t3lib/class.t3lib_userauthgroup.php +++ b/t3lib/class.t3lib_userauthgroup.php @@ -444,12 +444,13 @@ class t3lib_userAuthGroup extends t3lib_userAuth { * @param string String to search for in the groupData-list * @return boolean True if permission is granted (that is, the value was found in the groupData list - or the BE_USER is "admin") */ - function check($type,$value) { - if (isset($this->groupData[$type])) { - if ($this->isAdmin() || $this->inList($this->groupData[$type],$value)) { - return 1; + function check($type, $value) { + if (isset($this->groupData[$type])) { + if ($this->isAdmin() || $this->inList($this->groupData[$type], $value)) { + return TRUE; } } + return FALSE; } /**