mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-07-27 06:11:34 +00:00
let followers analyse corpus
This commit is contained in:
@@ -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 [
|
||||||
|
Reference in New Issue
Block a user