Force logged out state for .wired/.js/.embed.

Thanks to Jordan Milne for pointing out this oversight.
This commit is contained in:
Max Goodman
2013-08-21 13:45:19 -07:00
parent fac84e86c3
commit b1dc272847

View File

@@ -437,6 +437,10 @@ def set_content_type():
if not valid_jsonp_callback(wrapper):
abort(BadRequestError(errors.BAD_JSONP_CALLBACK))
# force logged-out state since these can be accessed cross-domain
c.user = UnloggedUser(get_browser_langs())
c.user_is_loggedin = False
def to_js(content):
return wrapper + "(" + utils.string2js(content) + ");"