lib/sinatra/auth/github.rb in sinatra_auth_github-1.1.0 vs lib/sinatra/auth/github.rb in sinatra_auth_github-1.2.0
- old
+ new
@@ -107,20 +107,20 @@
# Returns: true if the user has access, false otherwise
def github_team_access?(team_id)
github_user.team_member?(team_id)
end
- # Enforce user membership to the named organization
+ # Enforce publicized user membership to the named organization
#
# name - the organization to test membership against
#
- # Returns an execution halt if the user is not a member of the named org
+ # Returns an execution halt if the user is not a publicized member of the named org
def github_public_organization_authenticate!(name)
authenticate!
halt([401, "Unauthorized User"]) unless github_public_organization_access?(name)
end
- # Enforce user membership to the named organization if membership is publicized
+ # Enforce user membership to the named organization
#
# name - the organization to test membership against
#
# Returns an execution halt if the user is not a member of the named org
def github_organization_authenticate!(name)