let followers analyse corpus

This commit is contained in:
Patrick Jentsch 2023-02-09 11:06:03 +01:00
parent 965bc9d68a
commit a7136df5d2

View File

@ -62,7 +62,9 @@ def connect(auth):
if corpus is None: if corpus is None:
# return {'code': 404, 'msg': 'Not Found'} # return {'code': 404, 'msg': 'Not Found'}
raise ConnectionRefusedError('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'} # return {'code': 403, 'msg': 'Forbidden'}
raise ConnectionRefusedError('Forbidden') raise ConnectionRefusedError('Forbidden')
if corpus.status not in [ if corpus.status not in [