Skip to content

Commit

Permalink
Remvoe AssessorPolicy
Browse files Browse the repository at this point in the history
It's no longer used anywhere.
  • Loading branch information
thomasleese committed Dec 7, 2023
1 parent aa64cc7 commit aa941af
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 76 deletions.
4 changes: 0 additions & 4 deletions app/controllers/assessor_interface/base_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,4 @@ class AssessorInterface::BaseController < ApplicationController
layout "two_thirds"

after_action :verify_authorized

def authorize_assessor
authorize :assessor
end
end
23 changes: 0 additions & 23 deletions app/policies/assessor_policy.rb

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<% end %>
<% end %>

<% if policy(:assessor).update? && @view_object.can_update? %>
<% if policy([:assessor_interface, @view_object.further_information_request]).update? && @view_object.can_update? %>
<%= form_with model: @form, url: [:assessor_interface, @view_object.application_form, @view_object.assessment, @view_object.further_information_request], method: :put do |f| %>
<%= f.govuk_error_summary %>

Expand Down
4 changes: 2 additions & 2 deletions config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
}

# Show full error reports and enable caching.
config.consider_all_requests_local = false
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
config.cache_store = :memory_store

# Render exception templates instead of raising exceptions.
config.action_dispatch.show_exceptions = :all
config.action_dispatch.show_exceptions = :none

# Disable request forgery protection in test environment.
config.action_controller.allow_forgery_protection = false
Expand Down
46 changes: 0 additions & 46 deletions spec/policies/assessor_policy_spec.rb

This file was deleted.

0 comments on commit aa941af

Please sign in to comment.