mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-11 16:40:40 +00:00
Fix TranskribusHTRModel display problems
This commit is contained in:
@ -48,6 +48,16 @@ def corpus(corpus_id):
|
||||
corpus = Corpus.query.get_or_404(corpus_id)
|
||||
if not (corpus.user == current_user or current_user.is_administrator()):
|
||||
abort(403)
|
||||
# cool = False
|
||||
# if corpus.is_public:
|
||||
# cool = True
|
||||
# elif current_user.is_authenticated:
|
||||
# if corpus.user == current_user or current_user.is_administrator:
|
||||
# cool = True
|
||||
# else:
|
||||
# abort(403)
|
||||
# else:
|
||||
# return current_app.login_manager.unauthorized()
|
||||
return render_template(
|
||||
'corpora/corpus.html.j2',
|
||||
corpus=corpus,
|
||||
|
Reference in New Issue
Block a user