TYPO3/Extbase/Security/FeUser.php
public static function hasRoleId($role)
    {
        return (self::isFeUser()
            && self::isAuthenticated()
            && in_array($role, $GLOBALS['TSFE']->fe_user->groupData['uid'])
        );
    }
public static function hasRoleId($role)
    {
        return (self::isFeUser()
            && self::isAuthenticated()
            && in_array($role, $GLOBALS['TSFE']->fe_user->groupData['uid'])
        );
    }
public static function hasRoleId ( $ role ) { return ( self :: isFeUser ( ) && self :: isAuthenticated ( ) && in_array ( $ role , $ GLOBALS [ 'TSFE' ] -> fe_user -> groupData [ 'uid' ] ) ) ; }
Checks whether fe_user is authenticated and has given role id

@param int $role
@return bool
Checks whether fe_user is authenticated and has given role id