Skip to content

Commit

Permalink
Merge pull request #268 from humanmade/backport-263-to-v8-branch
Browse files Browse the repository at this point in the history
[Backport v8-branch] Make global content repo site private by default
  • Loading branch information
roborourke authored Aug 20, 2021
2 parents 7bcf40f + 49987f8 commit e78e026
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/global-content-repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Altis includes a Global Content Repository framework. This is a site on the netw

By default the Global Content Repository only exposes the user management admin. Other Altis modules may extend this, for example [the Altis Media module has a Global Media Library feature](docs://media/global-media-library.md) built on top of the Global Content Repository that allows for uploading media files and accessing them from all sites on the network.

The Global Content Repository site is set to be a private site by default. This can be modified by switching the site to a public one from the Network Admin > Sites management page, clicking `Edit` on the site, and checking the `Public` checkbox.

## User Management

Users on the multisite network can have different roles on different sites. This gives you control over who can add and edit global content versus who can only use the global content on their own site.
Expand Down
1 change: 1 addition & 0 deletions inc/global_content/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ function maybe_create_site() {
$global_site_args = apply_filters( 'altis.core.global_content_site_args', [
'domain' => wp_parse_url( home_url(), PHP_URL_HOST ),
'path' => '/repo/',
'public' => 0,
'title' => __( 'Global Content Repository', 'altis' ),
] );

Expand Down

0 comments on commit e78e026

Please sign in to comment.