diff --git a/app/corpora/routes.py b/app/corpora/routes.py index 69086bc0..4b10fa2c 100644 --- a/app/corpora/routes.py +++ b/app/corpora/routes.py @@ -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 diff --git a/app/main/routes.py b/app/main/routes.py index aed63853..dd4a5007 100644 --- a/app/main/routes.py +++ b/app/main/routes.py @@ -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)