banning: Ensure TOO_LONG is actually validated for note.

This commit is contained in:
Andre D
2013-05-20 23:35:24 -07:00
committed by Roger Ostrander
parent b6607196a6
commit bd8fe10405

View File

@@ -753,6 +753,8 @@ class ApiController(RedditController, OAuth2ResourceController):
elif form.has_errors("name", errors.USER_DOESNT_EXIST, errors.NO_USER):
return
elif form.has_errors("note", errors.TOO_LONG):
return
if type in self._sr_friend_types_with_permissions:
if form.has_errors('type', errors.INVALID_PERMISSION_TYPE):