Subreddit creation: fix bug with ratelimiting

This commit is contained in:
Chad Birch
2015-03-03 10:15:53 -07:00
parent 274a8d7008
commit b0f0d3e6d6

View File

@@ -2462,7 +2462,7 @@ class ApiController(RedditController):
if not sr and form.has_errors("ratelimit", errors.RATELIMIT):
pass
if not sr and form.has_errors("", errors.CANT_CREATE_SR):
elif not sr and form.has_errors("", errors.CANT_CREATE_SR):
pass
# if existing subreddit is employees_only and trying to change type,
# require that admin mode is on