Skip to content

Commit ad841e3

Browse files
authored
Add a note explaining that no sub-repo perms = sub-repo perms disabled (#1090)
Just a small note clarifying that if no sub-repo permissions have been set for a repository, that repository is treated as not having sub-repo permissions enabled. ## Pull Request approval You will need to get your PR approved by at least one member of the Sourcegraph team. For reviews of docs formatting, styles, and component usage, please tag the docs team via the #docs Slack channel.
1 parent 6130c17 commit ad841e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/admin/permissions/api.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ You can call `setRepositoryPermissionsForUsers` repeatedly to set permissions fo
9999

100100
## Setting sub-repository permissions for users
101101

102+
> NOTE: If a user has no sub-repo permissions set for a specific repository (assuming that they have general access to the repository), they will have access to the entire repository contents.
103+
102104
Sourcegraph supports permissions on a per-file/directory basis.
103105

104106
To enable the sub-repo permissions API, add the following to the [site configuration](/admin/config/site_config):

0 commit comments

Comments
 (0)