This commit is contained in:
@@ -15,22 +15,19 @@ topics:
|
||||
shortTitle: Set visibility changes policy
|
||||
---
|
||||
|
||||
You can restrict the ability to change repository visibility to organization owners only, or allow members with admin privileges for a repository to also change visibility.
|
||||
You can restrict who has the ability to change a repository's visibility, such as changing a repository from private to public. For more information about repository visibility, see "[About repositories](/repositories/creating-and-managing-repositories/about-repositories#about-repository-visibility)."
|
||||
|
||||
You can restrict the ability to change repository visibility to organization owners only, or you can allow anyone with admin access to a repository to change visibility.
|
||||
|
||||
{% warning %}
|
||||
|
||||
**Warning**: If enabled, this setting allows people with admin permissions to change an existing repository to any visibility, even if you do not allow that type of repository to be created. For more information about restricting the visibility of repositories during creation, see "[Restricting repository creation in your organization](/articles/restricting-repository-creation-in-your-organization)."
|
||||
**Warning**: If enabled, this setting allows people with admin access to choose any visibility for an existing repository, even if you do not allow that type of repository to be created. For more information about restricting the visibility of repositories during creation, see "[Restricting repository creation in your organization](/articles/restricting-repository-creation-in-your-organization)."
|
||||
|
||||
{% endwarning %}
|
||||
|
||||
|
||||
{% data reusables.profile.access_org %}
|
||||
{% data reusables.profile.org_settings %}
|
||||
{% data reusables.organizations.member-privileges %}
|
||||
5. Under "Repository visibility change", deselect **Allow members to change repository visibilities for this organization**.
|
||||

|
||||
6. Click **Save**.
|
||||
|
||||
## Further reading
|
||||
|
||||
- "[About repositories](/repositories/creating-and-managing-repositories/about-repositories#about-repository-visibility)"
|
||||
|
||||
Reference in New Issue
Block a user