aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/newapplication_helper.rb
diff options
context:
space:
mode:
authorRobert2018-01-09 12:24:23 +0100
committerRobert2018-01-09 12:24:36 +0100
commit0e91d206fd8278d0c43c34777f4a585481882b70 (patch)
tree9ef641b3455de5d6da2c22ffb702661e4e69ff8d /app/helpers/newapplication_helper.rb
parent7ea0a6079017c561aa8286198bd77b258cb2d240 (diff)
downloadchouette-core-0e91d206fd8278d0c43c34777f4a585481882b70.tar.bz2
Refs: #5413@0.5h; Refactoring of #archived_or_finalised?
Diffstat (limited to 'app/helpers/newapplication_helper.rb')
-rw-r--r--app/helpers/newapplication_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/newapplication_helper.rb b/app/helpers/newapplication_helper.rb
index c1a1c189e..4ca69560b 100644
--- a/app/helpers/newapplication_helper.rb
+++ b/app/helpers/newapplication_helper.rb
@@ -147,7 +147,7 @@ module NewapplicationHelper
content_tag :li, link_to(t("actions.#{action}"), polymorph_url)
end
elsif action == :archive
- unless item.archived_or_finalised?
+ unless item.referntial_read_only?
content_tag :li, link_to(t("actions.#{action}"), polymorph_url, method: :put)
end
elsif action == :unarchive