From 0901ecaf7830b4e24f8b817a67eb79726e8b7ab8 Mon Sep 17 00:00:00 2001 From: Emanuel Dima Date: Fri, 4 Apr 2014 16:21:53 +0200 Subject: [PATCH] fixed #225, caused by a bad record cache --- invenio/lib/record_blueprint.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/invenio/lib/record_blueprint.py b/invenio/lib/record_blueprint.py index 3f1491a231..49c74c668c 100644 --- a/invenio/lib/record_blueprint.py +++ b/invenio/lib/record_blueprint.py @@ -83,7 +83,10 @@ def decorated(recid, *args, **kwargs): flash(_("Authorization failure"), 'error') return redirect(url_for('webaccount.login', **url_args)) elif auth_code: - if not check_fresh_record(current_user, recid): + if check_fresh_record(current_user, recid): + flash(auth_msg, 'Please wait, your record is being processed') + abort(apache.HTTP_NOT_FOUND) + else: flash(auth_msg, 'error') abort(apache.HTTP_UNAUTHORIZED)