octokit 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/octokit/client/organizations.rb +1 -1
- data/lib/octokit/version.rb +1 -1
- metadata +1 -1
@@ -147,7 +147,7 @@ module Octokit
|
|
147
147
|
# => false
|
148
148
|
def organization_member?(org, user, options = {})
|
149
149
|
result = boolean_from_response(:get, "orgs/#{org}/members/#{user}", options)
|
150
|
-
if last_response.status == 302
|
150
|
+
if !result && last_response && last_response.status == 302
|
151
151
|
boolean_from_response :get, last_response.headers['Location']
|
152
152
|
else
|
153
153
|
result
|
data/lib/octokit/version.rb
CHANGED