public function getUserAllowedRoots()
    {
        $user = $this->getUser();

        if ($user->isAdmin) {
            return null;
        }

        return \array_map('intval', (array) $user->newscategories_roots);
    }
public function getUserAllowedRoots()
    {
        $user = $this->getUser();

        if ($user->isAdmin) {
            return null;
        }

        return \array_map('intval', (array) $user->newscategories_roots);
    }
public function getUserAllowedRoots ( ) { $ user = $ this -> getUser ( ) ; if ( $ user -> isAdmin ) { return null ; } return \ array_map ( 'intval' , ( array ) $ user -> newscategories_roots ) ; }
Get the user allowed roots. Return null if the user has no limitation.

@return array|null
Get the user allowed roots . Return null if the user has no limitation .