mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Fix dead code references to controller "abort" method.
These are not the aborts you are looking for.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user