Skip to content

Commit 03f2841

Browse files
committed
Add a note explaining that no sub-repo perms = sub-repo perms disabled
1 parent 6130c17 commit 03f2841

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 no sub-repository permissions have been set for a repository, that repository is treated as not having sub-repo permissions enabled.
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)