Method: J1App::GithubHelpers#github_team_access?
- Defined in:
- lib/j1_app/j1_auth_manager/helpers_github.rb
#github_team_access?(team_id) ⇒ Boolean
See if the user is a member of the team id
team_id - the team’s id
Returns: true if the user has access, false otherwise
77 78 79 |
# File 'lib/j1_app/j1_auth_manager/helpers_github.rb', line 77 def github_team_access?(team_id) github_user.team_member?(team_id) end |