2010-02-26 Benjamin Mack <benni@typo3.org>
+ * 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)
* @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;
}
/**