Method: J1App::GithubHelpers#github_team_authenticate!
- Defined in:
- lib/j1_app/j1_auth_manager/helpers_github.rb
#github_team_authenticate!(team_id) ⇒ Object
Enforce user membership to the team id
team_id - the team_id to test membership against
Returns an execution halt if the user is not a member of the team
106 107 108 109 |
# File 'lib/j1_app/j1_auth_manager/helpers_github.rb', line 106 def github_team_authenticate!(team_id) authenticate! halt([401, "Unauthorized User"]) unless github_team_access?(team_id) end |