Skip to content

Commit

Permalink
fixed #225, caused by a bad record cache
Browse files Browse the repository at this point in the history
  • Loading branch information
emanueldima committed Apr 4, 2014
1 parent 5789c35 commit 0901eca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion invenio/lib/record_blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 0901eca

Please sign in to comment.