Merge branch 'public-corpus' of gitlab.ub.uni-bielefeld.de:sfb1288inf/nopaque into public-corpus

This commit is contained in:
Patrick Jentsch 2023-02-15 11:00:10 +01:00
commit 23cdfb1441
2 changed files with 2 additions and 1 deletions

View File

@ -165,6 +165,7 @@ def corpus(corpus_id):
if corpus.user == current_user or current_user.is_administrator():
# now = datetime.utcnow()
# payload = {
# 'exp': now + timedelta(weeks=1),
# 'iat': now,
# 'iss': current_app.config['SERVER_NAME'],
# 'sub': corpus.hashid

View File

@ -33,7 +33,7 @@ def dashboard():
]
corpora = [
c.to_json_serializeable() for c
in Corpus.query.filter(Corpus.is_public == True).all()
in Corpus.query.filter(Corpus.is_public == True, Corpus.user != current_user).all()
]
return render_template('main/dashboard.html.j2', title='Dashboard', users=users, corpora=corpora)