Skip to content

Commit

Permalink
Disable view email action
Browse files Browse the repository at this point in the history
Prevent harvesting emails from our database.
  • Loading branch information
gbp committed May 17, 2024
1 parent 2dc9cc6 commit acc4eb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/public_body/_more_info.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
<%= link_to _('Disclosure log'), public_body.disclosure_log %><br>
<% end %>
<%= link_to _('View FOI email address'), view_public_body_email_path(public_body.url_name) %><br>
<%#= link_to _('View FOI email address'), view_public_body_email_path(public_body.url_name) %><br>

<%= link_to _("Ask us to update FOI email"), new_change_request_body_path(:body => public_body.url_name) %><br>
6 changes: 3 additions & 3 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,9 @@ def matches?(request)
:as => :show_public_body_awaiting,
:view => 'awaiting',
:via => :get
match '/body/:url_name/view_email' => 'public_body#view_email',
:as => :view_public_body_email,
:via => [:get, :post]
# match '/body/:url_name/view_email' => 'public_body#view_email',
# :as => :view_public_body_email,
# :via => [:get, :post]
match '/body/:url_name/:tag' => 'public_body#show',
:as => :show_public_body_tag,
:via => :get
Expand Down

0 comments on commit acc4eb8

Please sign in to comment.