Fix dead code references to controller "abort" method.

These are not the aborts you are looking for.
This commit is contained in:
Max Goodman
2014-02-27 19:03:28 -08:00
parent 959240ab9c
commit c9ad15aa54
2 changed files with 4 additions and 4 deletions

View File

@@ -1790,7 +1790,7 @@ class ApiController(RedditController):
"""
# just in case we need to kill this feature from XSS
if g.css_killswitch:
return self.abort(403,'forbidden')
return abort(403, 'forbidden')
if form.has_errors("img_name", errors.BAD_CSS_NAME):
return
@@ -1813,7 +1813,7 @@ class ApiController(RedditController):
"""
# just in case we need to kill this feature from XSS
if g.css_killswitch:
return self.abort(403,'forbidden')
return abort(403, 'forbidden')
if c.site.header:
c.site.header = None
c.site.header_size = None
@@ -2554,7 +2554,7 @@ class ApiController(RedditController):
parent = VByName('parent_id'))
def POST_moremessages(self, form, jquery, parent):
if not parent.can_view_slow():
return self.abort(403,'forbidden')
return abort(403, 'forbidden')
if parent.sr_id:
builder = SrMessageBuilder(parent.subreddit_slow,

View File

@@ -197,7 +197,7 @@ class ToolbarController(RedditController):
links = list(wrap_links(link))
if not links:
# they aren't allowed to see this link
return self.abort(403, 'forbidden')
return abort(403, 'forbidden')
link = links[0]
wrapper = make_wrapper(render_class = StarkComment,