Method: J1App::GithubHelpers#github_public_organization_authenticate!

Defined in:
lib/j1_app/j1_auth_manager/helpers_github.rb

#github_public_organization_authenticate!(name) ⇒ Object

Enforce publicized user membership to the named organization

name - the organization to test membership against

Returns an execution halt if the user is not a publicized member of the named org



86
87
88
89
# File 'lib/j1_app/j1_auth_manager/helpers_github.rb', line 86

def github_public_organization_authenticate!(name)
  authenticate!
  halt([401, "Unauthorized User"]) unless github_public_organization_access?(name)
end