mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 19:04:18 +00:00
let followers analyse corpus
This commit is contained in:
parent
965bc9d68a
commit
a7136df5d2
@ -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 [
|
||||||
|
Loading…
Reference in New Issue
Block a user