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

        return $user->isAdmin || \in_array('tl_news::categories', $user->alexf, true);
    }
public function canUserAssignCategories()
    {
        $user = $this->getUser();

        return $user->isAdmin || \in_array('tl_news::categories', $user->alexf, true);
    }
public function canUserAssignCategories ( ) { $ user = $ this -> getUser ( ) ; return $ user -> isAdmin || \ in_array ( 'tl_news::categories' , $ user -> alexf , true ) ; }
Return true if the user can assign news categories.

@return bool
Return true if the user can assign news categories .