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

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

@param Pluf_HTTP_Request
@return boolean|Pluf_Exception_PermissionDenied
Check if the user is an editor .