Module: Rakuna::Authentication::GitHub::Organization

Includes:
Contracts, Integration::GitHub
Defined in:
lib/rakuna/authentication/github/organization.rb

Instance Method Summary collapse

Instance Method Details

#is_authorized?(authorization_header = nil) ⇒ Boolean

Returns:

  • (Boolean)

12
13
14
# File 'lib/rakuna/authentication/github/organization.rb', line 12

def is_authorized?(authorization_header = nil)
  organizations.any? { |org| whitelist.include? org. }
end