Skip to content

Commit

Permalink
fixup! Patch authority only response gatekeeper
Browse files Browse the repository at this point in the history
  • Loading branch information
gbp committed Feb 29, 2024
1 parent 67b9648 commit b85d8f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/authority_only_response_gatekeeper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ module AuthorityOnlyResponseGatekeeper
{ public_body_id: 27, email: '[email protected]' }
]

def calculate_allow_reason(info_request, mail)
def allow?(mail)
public_body_id = info_request.public_body_id
email = MailHandler.get_from_address(mail)

return [true, nil] if EXTRA_ALLOWED_EMAILS.any? do |a|
return true if EXTRA_ALLOWED_EMAILS.any? do |a|
a[:public_body_id] == public_body_id && a[:email] == email
end

Expand Down

0 comments on commit b85d8f6

Please sign in to comment.