Method: J1App::GithubHelpers#github_organization_authenticate!

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

#github_organization_authenticate!(name) ⇒ Object

Enforce user membership to the named organization

name - the organization to test membership against

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



96
97
98
99
# File 'lib/j1_app/j1_auth_manager/helpers_github.rb', line 96

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