Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
d7e4b1e4
Verified
Commit
d7e4b1e4
authored
Sep 14, 2017
by
Sébastiaan Versteeg
Browse files
Fix mailinglist apihash
parent
5f4560b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/mailinglists/api/permissions.py
View file @
d7e4b1e4
...
...
@@ -15,5 +15,5 @@ class MailingListPermission(permissions.BasePermission):
if
'secret'
in
request
.
GET
:
apihash
=
hashlib
.
sha1
(
request
.
GET
[
'secret'
]
.
encode
(
'utf-8'
)).
hexdigest
()
return
apihash
==
'
356a192b7913b04c54574d18c28d46e6395428ab
'
return
apihash
==
'
cb004452d9c80e295bebfc778871b3b082d70ad8
'
return
False
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment