diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb index dd24579c..1b44462f 100644 --- a/app/controllers/dashboard_controller.rb +++ b/app/controllers/dashboard_controller.rb @@ -19,6 +19,6 @@ def show private def druids_for_works_for_current_user - current_user.works.where.not(druid: nil).pluck(:druid) + current_user.your_works.where.not(druid: nil).pluck(:druid) end end diff --git a/app/presenters/work_presenter.rb b/app/presenters/work_presenter.rb index 034ae79e..9ce7dbf2 100644 --- a/app/presenters/work_presenter.rb +++ b/app/presenters/work_presenter.rb @@ -63,7 +63,7 @@ def terms_of_use end def status_message - case work.review_state + case review_state when 'pending_review' 'Pending review' when 'rejected_review' @@ -75,7 +75,7 @@ def status_message private - delegate :collection, :created_at, :user, to: :work + delegate :collection, :created_at, :user, :review_state, to: :work def license_presenter @license_presenter ||= LicensePresenter.new(work_form:, collection:)