Module: Sinatra::Auth::Github
- Defined in:
- lib/jekyll_auth/sinatra/auth/github.rb
Instance Method Summary collapse
-
#github_teams_authenticate!(teams) ⇒ Object
Like the native github_team_authenticate! but accepts an array of team ids.
Instance Method Details
#github_teams_authenticate!(teams) ⇒ Object
Like the native github_team_authenticate! but accepts an array of team ids
5 6 7 8 |
# File 'lib/jekyll_auth/sinatra/auth/github.rb', line 5 def github_teams_authenticate!(teams) authenticate! halt([401, "Unauthorized User"]) unless teams.any? { |team_id| github_team_access?(team_id) } end |