Skip to content

Commit

Permalink
make award amount editable for FE (#3155)
Browse files Browse the repository at this point in the history
  • Loading branch information
alkesh authored Sep 10, 2024
1 parent 0e15958 commit b0b4a8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/admin/amendments_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def amendment_errored_field_id_overrides(amendment)
end

def editable_award_amount_policy?(policy)
policy.in? [Policies::EarlyCareerPayments, Policies::LevellingUpPremiumPayments]
policy.in? [Policies::EarlyCareerPayments, Policies::LevellingUpPremiumPayments, Policies::FurtherEducationPayments]
end
end
end
1 change: 1 addition & 0 deletions spec/helpers/admin/amendments_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
describe ".editable_award_amount_policy?" do
specify { expect(editable_award_amount_policy?(Policies::EarlyCareerPayments)).to be true }
specify { expect(editable_award_amount_policy?(Policies::LevellingUpPremiumPayments)).to be true }
specify { expect(editable_award_amount_policy?(Policies::FurtherEducationPayments)).to be true }
specify { expect(editable_award_amount_policy?(Policies::StudentLoans)).to be false }
end
end

0 comments on commit b0b4a8e

Please sign in to comment.