Commit fa149f72 authored by merlinofchaos's avatar merlinofchaos

#554016 by webchick: views_embed_view() should check view access.

parent 8e293b1a
......@@ -39,6 +39,7 @@ Views 2.x-dev
o #520558 by bdurbin: node access filter not properly checking 'view'.
o #535424 by Hugo Wetterberg: Download file link could provide empty a tag if no file is available.
o #554000 by killes: Preview checking wrong flag for preview state causes feeds to display incorrectly when embedded.
o #554016 by webchick: views_embed_view() should check view access.
Other changes:
o Implement a post_render hook (for themes too) and cache method.
......
......@@ -1118,7 +1118,7 @@ function views_embed_view($name, $display_id = 'default') {
}
$view = views_get_view($name);
if (!$view) {
if (!$view || !$view->access($display_id)) {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment