Fix creating multis for users with capitals in their name.

This commit is contained in:
Max Goodman
2013-04-08 17:10:54 -07:00
parent c7ffe74d0d
commit 19e6e4e7a1

View File

@@ -95,7 +95,7 @@ class MultiApiController(RedditController, OAuth2ResourceController):
)
def PUT_multi(self, info, data):
"""Create or update a multi."""
if info['username'] != c.user.name:
if info['username'].lower() != c.user.name.lower():
raise RedditError('BAD_MULTI_NAME', code=400, fields="path")
try: