[FIX] website_blog: Blog Single page is not open with Admin rights, due to falsy domain!
This commit is contained in:
parent
2614448dd5
commit
d0ade88829
@ -229,7 +229,7 @@ class WebsiteBlog(http.Controller):
|
||||
tags = request.env['blog.tag'].search([])
|
||||
|
||||
# Find next Post
|
||||
all_post = BlogPost.search([('blog_id', '=', blog.id), ("website_published", "=", True), ("website_ids", "in", request.website.id)])
|
||||
all_post = BlogPost.search([('blog_id', '=', blog.id), ("website_ids", "in", request.website.id)])
|
||||
if not request.env.user.has_group('website.group_website_designer'):
|
||||
all_post = all_post.filtered(lambda r: r.post_date <= fields.Datetime.now())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user