Skip to content

Commit

Permalink
Merge pull request #232 from B2SHARE/search/missing-titles-#225
Browse files Browse the repository at this point in the history
fixed #225, caused by a bad record cache
  • Loading branch information
llehtine committed Apr 7, 2014
2 parents eaa0887 + 0901eca commit 76ce86c
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 76ce86c

Please sign in to comment.