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
d91055a0
Commit
d91055a0
authored
Sep 14, 2017
by
Joost Rijneveld
Browse files
Merge branch 'hotfix/mailinglist-key' into 'master'
Fix mailinglist apihash See merge request
!567
parents
b6402af4
d7e4b1e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/mailinglists/api/permissions.py
View file @
d91055a0
...
...
@@ -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