Commit 4956cc4c authored by Andreas Wolf's avatar Andreas Wolf Committed by Thomas Löffler
Browse files

[TASK] Use new integer test method

Change-Id: I2a6b5aa62fcabd97338ef5bee20da798dcb11c77
Reviewed-on: https://review.typo3.org/50616


Reviewed-by: Thomas Löffler's avatarThomas Löffler <loeffler@spooner-web.de>
Tested-by: Thomas Löffler's avatarThomas Löffler <loeffler@spooner-web.de>
parent bc03f64a
......@@ -86,7 +86,7 @@ class Tx_TerFe2_Security_Role implements \TYPO3\CMS\Core\SingletonInterface
if (empty($role) || !isset($GLOBALS['TSFE']) || !$GLOBALS['TSFE']->loginUser) {
return FALSE;
}
if (\TYPO3\CMS\Core\Utility\GeneralUtility::testInt($role)) {
if (\TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($role)) {
return (is_array($GLOBALS['TSFE']->fe_user->groupData['uid']) && in_array($role, $GLOBALS['TSFE']->fe_user->groupData['uid']));
} else {
return (is_array($GLOBALS['TSFE']->fe_user->groupData['title']) && in_array($role, $GLOBALS['TSFE']->fe_user->groupData['title']));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment