mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2026-10-18 21:00:56 +00:00
Fix TranskribusHTRModel display problems
This commit is contained in:
1 parent
1c8f4f7e9c
commit
ca27f2e6f2
4 files changed
+48
-5
No files matched your search
@@ -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