diff --git a/app/views/schemes/details.html.erb b/app/views/schemes/details.html.erb index f8baf47a8..4c42617f8 100644 --- a/app/views/schemes/details.html.erb +++ b/app/views/schemes/details.html.erb @@ -69,7 +69,7 @@ mantype_selection, :id, lambda { |option| - if option.id == "The same organisation that owns the housing stock" && !current_user.support? + if Scheme::ARRANGEMENT_TYPE[option.id] == "D" && !current_user.support? "Your organisation" else option.name diff --git a/app/views/schemes/new.html.erb b/app/views/schemes/new.html.erb index e4f598002..4d3e20cd4 100644 --- a/app/views/schemes/new.html.erb +++ b/app/views/schemes/new.html.erb @@ -71,7 +71,7 @@ mantype_selection, :id, lambda { |option| - if option.id == "The same organisation that owns the housing stock" && !current_user.support? + if Scheme::ARRANGEMENT_TYPE[option.id] == "D" && !current_user.support? "Your organisation" else option.name