-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Restricted users #6274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Restricted users #6274
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
836f9d8
Restricted users (#4334): initial implementation
mnsh 1f7b0fc
Merge branch 'master' into feature/restricted-users
sapk dc7e423
Mention restricted users in the faq
mnsh 4501f22
Revert unnecessary change `.isUserPartOfOrg` -> `.IsUserPartOfOrg`
mnsh 5b65242
Remove unnecessary `org.IsOrganization()` call
mnsh 124f056
Revert to an `int64` keyed `accessMap`
mnsh 06ad61a
or even better: `map[int64]*userAccess`
mnsh 10de9b6
updateUserAccess(): use tighter syntax as suggested by lafriks
mnsh 7d17aad
even tighter
mnsh 7d74b85
Avoid extra loop
mnsh 3459547
merge upstream, resolve migration conflicts
mnsh b788ef3
Don't disclose limited orgs to unauthenticated users
mnsh ee2f31f
Don't assume block only applies to orgs
mnsh eeecdab
Use an array of `VisibleType` for filtering
mnsh 57744b5
merge upstream & fix conflicts
mnsh d775c3b
fix yet another thinko
mnsh 5ae6016
Merge branch 'master' into feature/restricted-users
lafriks 095bfa6
Merge master & resolve conflicts
mnsh 5c3e886
Ok - no need for u
mnsh 95bca8e
Revert "Ok - no need for u"
mnsh 79c456e
Merge branch 'master' into feature/restricted-users
lafriks eaed6b3
Merge branch 'master' into feature/restricted-users
mnsh a54d9d6
Merge branch 'master' into feature/restricted-users
sapk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,10 @@ | |
id: 3 | ||
repo_id: 40 | ||
user_id: 4 | ||
mode: 2 # write | ||
mode: 2 # write | ||
|
||
- | ||
id: 4 | ||
repo_id: 4 | ||
user_id: 29 | ||
mode: 2 # write |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,3 +58,8 @@ | |
org_id: 6 | ||
is_public: true | ||
|
||
- | ||
id: 11 | ||
uid: 29 | ||
org_id: 17 | ||
is_public: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,7 +77,7 @@ | |
name: review_team | ||
authorize: 1 # read | ||
num_repos: 1 | ||
num_members: 1 | ||
num_members: 2 | ||
|
||
- | ||
id: 10 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,3 +81,9 @@ | |
org_id: 6 | ||
team_id: 13 | ||
uid: 28 | ||
|
||
- | ||
id: 15 | ||
org_id: 17 | ||
team_id: 9 | ||
uid: 29 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.