Pages: Disable 'approve' button for spam accounts

This commit is contained in:
Roger Ostrander
2013-09-29 15:09:59 -07:00
parent 55241e4b16
commit fbfe49442d

View File

@@ -2105,6 +2105,7 @@ class ApiController(RedditController, OAuth2ResourceController):
"""
if not thing: return
if thing._deleted: return
if c.user._spam: return
kw = {'target': thing}
if thing._spam:
kw['details'] = 'unspam'