pub fn check_permission( plugins: Plugins, stmt: &Statement, query_ctx: &QueryContextRef, ) -> Result<()>