module Sinatra::Auth::Github::Helpers
Public Instance Methods
github_teams_authenticate!(teams)
click to toggle source
Like the native github_team_authenticate! but accepts an array of team ids
# File lib/bunto_auth/sinatra/auth/github.rb, line 6 def github_teams_authenticate!(teams) authenticate! halt([401, "Unauthorized User"]) unless teams.any? { |team_id| github_team_access?(team_id) } end