Commit 677d5572 authored by Michal Čihař's avatar Michal Čihař

Skip ACL check for rendering widget

Assuming that when somebody shares the widget, he wants it publicly
accessible.

Also the widget does not leak much information, so privacy wise this
does not seem to be dangerous as well.
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 4f072d48
......@@ -118,7 +118,8 @@ def widgets(request, project):
@cache_page(3600)
def render_widget(request, project, widget='287x66', color=None, lang=None,
extension='png'):
obj = get_project(request, project)
# We intentionally skip ACL here to allow widget sharing
obj = get_project(request, project, skip_acl=True)
# Handle language parameter
if lang is not None:
......
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