public function allowViewAccess($viewName, $role=null)
    {
        if (!$role)
            $role = "";

        $view = $this->getMatchView($viewName);
        if (!$view)
            return true;

        $roleList = $view->getRoleList();
        if (!$roleList)
            return true;
        if ($roleList->get($role))
            return true;

        return false;
    }
public function allowViewAccess($viewName, $role=null)
    {
        if (!$role)
            $role = "";

        $view = $this->getMatchView($viewName);
        if (!$view)
            return true;

        $roleList = $view->getRoleList();
        if (!$roleList)
            return true;
        if ($roleList->get($role))
            return true;

        return false;
    }
public function allowViewAccess ( $ viewName , $ role = null ) { if ( ! $ role ) $ role = "" ; $ view = $ this -> getMatchView ( $ viewName ) ; if ( ! $ view ) return true ; $ roleList = $ view -> getRoleList ( ) ; if ( ! $ roleList ) return true ; if ( $ roleList -> get ( $ role ) ) return true ; return false ; }
Allow view access

@param string $viewName
@param <type> $role
@return boolean
Allow view access