Skip to content

Commit

Permalink
Merge pull request #1867 from DFE-Digital/index-policy
Browse files Browse the repository at this point in the history
Allow indexing references and qualifications
  • Loading branch information
thomasleese authored Dec 12, 2023
2 parents 7101bf5 + b042fe6 commit d690fc6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class AssessorInterface::QualificationRequestPolicy < ApplicationPolicy
def index?
user.assess_permission
true
end

def update?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class AssessorInterface::ReferenceRequestPolicy < ApplicationPolicy
def index?
user.assess_permission
true
end

def update_verify_references?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

describe "#index?" do
subject(:index?) { policy.index? }
it_behaves_like "a policy method requiring the assess permission"
it_behaves_like "a policy method with permission"
end

describe "#show?" do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

describe "#index?" do
subject(:index?) { policy.index? }
it_behaves_like "a policy method requiring the assess permission"
it_behaves_like "a policy method with permission"
end

describe "#update_verify_references?" do
Expand Down

0 comments on commit d690fc6

Please sign in to comment.