Commit 16b914ea authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch 'remove_encode' into 'master'

Remove .encode that breaks mailinglist api permissions check

See merge request !805
parents dc43cab9 d0b752ce
......@@ -13,6 +13,6 @@ class MailingListPermission(permissions.BasePermission):
return True
if 'secret' in request.GET:
return (request.GET['secret'].encode('utf-8')
return (request.GET['secret']
== settings.MAILINGLIST_API_SECRET)
return False
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment