Skip to content
Browse files

Merge pull request #75 from troupe/membership2

Membership check for an individual user is returning the incorrect results
  • Loading branch information...
2 parents 9eb5b5b + bcde90d commit 05db5594a29a526d13184dc0d60ec54115e80d44 @pksunkara committed Dec 5, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/octonode/org.js
  2. +1 −1 src/octonode/org.coffee
View
2 lib/octonode/org.js
@@ -96,7 +96,7 @@
if (err) {
return cb(err);
}
- return cb(null, s === 204 || s === 302);
+ return cb(null, s === 204);
});
};
View
2 src/octonode/org.coffee
@@ -62,7 +62,7 @@ class Org
member: (user, cb) ->
@client.getNoFollow "/orgs/#{@name}/members/#{user}", (err, s, b) ->
return cb(err) if err
- cb null, s is 204 or s is 302
+ cb null, s is 204
# Export module
module.exports = Org

0 comments on commit 05db559

Please sign in to comment.
Something went wrong with that request. Please try again.