Skip to content
Snippets Groups Projects
Commit a7136df5 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

let followers analyse corpus

parent 965bc9d6
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,9 @@ def connect(auth):
if corpus is None:
# return {'code': 404, 'msg': 'Not Found'}
raise ConnectionRefusedError('Not Found')
if not (corpus.user == current_user or current_user.is_administrator()):
if not (corpus.user == current_user
or current_user.is_following_corpus(corpus)
or current_user.is_administrator()):
# return {'code': 403, 'msg': 'Forbidden'}
raise ConnectionRefusedError('Forbidden')
if corpus.status not in [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment