Commit eff75fc6 authored by mo khan's avatar mo khan Committed by Ash McKenzie

Invert hash to do reverse lookup

parent ab23a865
......@@ -862,7 +862,8 @@ module EE
class ManagedLicense < Grape::Entity
expose :id, :name
expose :classification, as: :approval_status do |policy|
policy.denied? ? 'blacklisted' : policy.classification
SoftwareLicensePolicy::APPROVAL_STATUS.invert
.fetch(policy.classification, policy.classification)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment