Method: J1App::GithubHelpers#github_organization_access?

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

#github_organization_access?(name) ⇒ Boolean

See if the user is a member of the named organization

name - the organization name

Returns: true if the user has access, false otherwise

Returns:

  • (Boolean)


68
69
70
# File 'lib/j1_app/j1_auth_manager/helpers_github.rb', line 68

def github_organization_access?(name)
  github_user.organization_member?(name)
end