avatar mbabker
mbabker
11 Dec 2016

Given the project leadership has elected to make use of GitHub's blocked user feature which blocks users from interacting with a GitHub organization's repositories, we are now required to ensure we support this to ensure the block cannot be bypassed.

avatar mbabker mbabker - open - 11 Dec 2016
avatar elkuku
elkuku - comment - 21 Jan 2017

It seems that information about blocked users is only available via the GitHub UI . I can't find any method in the API returning this information.
Should we maintain a separate list of blocked users? That feels quite ugly...

avatar mbabker
mbabker - comment - 21 Jan 2017

Well, if it's not available then it's not available and we therefore have to rely on the GitHub API to do its thing. Best thing I could suggest is block a user on a test repo, have that user try to open an issue or comment on something, and see what the API kicks back.

avatar zero-24
zero-24 - comment - 21 Jan 2017

@mbabker can you block me from the https://github.com/jtester/tests repo so we can test that?

avatar elkuku
elkuku - comment - 21 Jan 2017

It looks like only organizations are able to block users..
@zero-24 I transferred that test repo to an organization and blocked you ? Please try...

Not sure if the repo transfer leads to syncing errors since the url has changed - please report...

avatar zero-24
zero-24 - comment - 21 Jan 2017

image

@elkuku can you try with your user that this error is not realted to the change to the organization?

avatar elkuku
elkuku - comment - 21 Jan 2017

OK I tried a different approach now.. please try again ?

avatar zero-24
zero-24 - comment - 21 Jan 2017

looks like that it works as i get now a 403 error:
image

avatar elkuku
elkuku - comment - 21 Jan 2017

Well I think thats "it". So basically we "support" the blocked user feature...

avatar mbabker
mbabker - comment - 21 Jan 2017

Works for me.

avatar mbabker mbabker - change - 21 Jan 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-01-21 18:35:42
Closed_By mbabker
avatar mbabker mbabker - close - 21 Jan 2017
avatar mbabker mbabker - close - 21 Jan 2017
avatar zero-24
zero-24 - comment - 21 Jan 2017

@elkuku can you unblock me than ?

avatar elkuku
elkuku - comment - 21 Jan 2017

@zero-24 you have been unblocked ?

avatar zero-24
zero-24 - comment - 21 Jan 2017

Thanks ?

Add a Comment

Login with GitHub to post a comment