Skip to content
Snippets Groups Projects
Commit 7f7c31aa authored by Jeremy Kersten's avatar Jeremy Kersten
Browse files

[FIX] website_slide: promote is for employees only.

Avoid to be in sitemap.
Anyway, it is show only if group user and no permission for public user.
parent 68234266
No related branches found
No related tags found
No related merge requests found
...@@ -227,7 +227,7 @@ class website_slides(http.Controller): ...@@ -227,7 +227,7 @@ class website_slides(http.Controller):
return werkzeug.utils.redirect('/web?redirect=/slides/slide/%s' % (slide.id)) return werkzeug.utils.redirect('/web?redirect=/slides/slide/%s' % (slide.id))
return request.website.render("website.403") return request.website.render("website.403")
@http.route('/slides/slide/<model("slide.slide"):slide>/promote', type='http', auth='public', website=True) @http.route('/slides/slide/<model("slide.slide"):slide>/promote', type='http', auth='user', website=True)
def slide_set_promoted(self, slide): def slide_set_promoted(self, slide):
slide.channel_id.promoted_slide_id = slide.id slide.channel_id.promoted_slide_id = slide.id
return request.redirect("/slides/%s" % slide.channel_id.id) return request.redirect("/slides/%s" % slide.channel_id.id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment