app/presenters/etd_presenter.rb
# TODO: check date of embargo release and make sure it hasn't passed already
check date of embargo release and make sure it hasn't passed already
check date of embargo release and make sure it hasn ' t passed already
def abstract_with_embargo_check
    return "No abstract is available." unless abstract && abstract.first
    return abstract_for_admin if current_ability.admin?
    return abstract_for_admin if current_ability_is_depositor?
    return abstract_for_admin if current_ability_is_approver?
    return "This abstract is under embargo until #{formatted_embargo_release_date}" if embargo_release_date && abstract_embargoed
    abstract.first
  end
def abstract_with_embargo_check return "No abstract is available." unless abstract && abstract . first return abstract_for_admin if current_ability . admin? return abstract_for_admin if current_ability_is_depositor? return abstract_for_admin if current_ability_is_approver? return "This abstract is under embargo until #{formatted_embargo_release_date}" if embargo_release_date && abstract_embargoed abstract . first end
TODO: check date of embargo release and make sure it hasn't passed already
TODO : check date of embargo release and make sure it hasn ' t passed already