Skip to content
Snippets Groups Projects
Commit 23cdfb14 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

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

parents 3e8bc521 1f7baa63
No related branches found
No related tags found
No related merge requests found
...@@ -165,6 +165,7 @@ def corpus(corpus_id): ...@@ -165,6 +165,7 @@ def corpus(corpus_id):
if corpus.user == current_user or current_user.is_administrator(): if corpus.user == current_user or current_user.is_administrator():
# now = datetime.utcnow() # now = datetime.utcnow()
# payload = { # payload = {
# 'exp': now + timedelta(weeks=1),
# 'iat': now, # 'iat': now,
# 'iss': current_app.config['SERVER_NAME'], # 'iss': current_app.config['SERVER_NAME'],
# 'sub': corpus.hashid # 'sub': corpus.hashid
......
...@@ -33,7 +33,7 @@ def dashboard(): ...@@ -33,7 +33,7 @@ def dashboard():
] ]
corpora = [ corpora = [
c.to_json_serializeable() for c 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) return render_template('main/dashboard.html.j2', title='Dashboard', users=users, corpora=corpora)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment