You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Copy file name to clipboardExpand all lines: docs/admin/permissions/api.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,8 @@ You can call `setRepositoryPermissionsForUsers` repeatedly to set permissions fo
99
99
100
100
## Setting sub-repository permissions for users
101
101
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
+
102
104
Sourcegraph supports permissions on a per-file/directory basis.
103
105
104
106
To enable the sub-repo permissions API, add the following to the [site configuration](/admin/config/site_config):
0 commit comments