Skip to content

Commit

Permalink
Remove AssessorPolicy
Browse files Browse the repository at this point in the history
It's no longer used anywhere.
  • Loading branch information
thomasleese committed Dec 8, 2023
1 parent 41ccd87 commit 0a17ed7
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 74 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
46 changes: 0 additions & 46 deletions spec/policies/assessor_policy_spec.rb

This file was deleted.

0 comments on commit 0a17ed7

Please sign in to comment.