Sha256: 43b458d514b4f0fe5cc1804ef24f7ad1d76ab2a44800a7a949f7ac3847c11ebd
Contents?: true
Size: 326 Bytes
Versions: 6
Compression:
Stored size: 326 Bytes
Contents
module Sinatra module Auth module Github # Like the native github_team_authenticate! but accepts an array of team ids def github_teams_authenticate!(teams) authenticate! halt([401, "Unauthorized User"]) unless teams.any? { |team_id| github_team_access?(team_id) } end end end end
Version data entries
6 entries across 6 versions & 1 rubygems