static public function isAuthor($request)
    {
        if (! User_Precondition::isLogedIn($request)){
            return false;
        }
        if ($request->user->hasPerm('tenant.owner') || //
        $request->user->hasPerm('cms.editor') || //
        $request->user->hasPerm('cms.author')) {
            return true;
        }
        return false;
    }
static public function isAuthor($request)
    {
        if (! User_Precondition::isLogedIn($request)){
            return false;
        }
        if ($request->user->hasPerm('tenant.owner') || //
        $request->user->hasPerm('cms.editor') || //
        $request->user->hasPerm('cms.author')) {
            return true;
        }
        return false;
    }
static public function isAuthor ( $ request ) { if ( ! User_Precondition :: isLogedIn ( $ request ) ) { return false ; } if ( $ request -> user -> hasPerm ( 'tenant.owner' ) || // $ request -> user -> hasPerm ( 'cms.editor' ) || // $ request -> user -> hasPerm ( 'cms.author' ) ) { return true ; } return false ; }
Check if the user is an author.

User is author if he/she has one of the following permissions:
<ul>
<li>tenant.owner</li>
<li>cms.editor</li>
<li>cms.author</li>
</ul>

@param Pluf_HTTP_Request
@return boolean
Check if the user is an author .