Make the community pages available to local users every time

This commit is contained in:
Michael 2018-01-03 14:49:22 +00:00
parent 2831638aeb
commit b002574590
3 changed files with 4 additions and 32 deletions

View file

@ -19,7 +19,7 @@ function community_content(App $a, $update = 0) {
return;
}
if (!in_array(Config::get('system','community_page_style'), [CP_USERS_ON_SERVER, CP_USERS_AND_GLOBAL])) {
if (!local_user() && !in_array(Config::get('system','community_page_style'), [CP_USERS_ON_SERVER, CP_USERS_AND_GLOBAL])) {
notice(t('Not available.') . EOL);
return;
}