mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 00:04:27 +02:00
Merge pull request #14356 from annando/fix-public
Fix restricted access to public timeline
This commit is contained in:
commit
602cb3b35b
1 changed files with 2 additions and 2 deletions
|
@ -141,11 +141,11 @@ class PublicTimeline extends BaseApi
|
||||||
|
|
||||||
private function localAllowed(): bool
|
private function localAllowed(): bool
|
||||||
{
|
{
|
||||||
return in_array($this->config->get('system', 'community_page_style'), [Community::LOCAL, Community::LOCAL_AND_GLOBAL]);
|
return in_array($this->config->get('system', 'community_page_style'), [Community::LOCAL, Community::LOCAL_AND_GLOBAL, Community::DISABLED_VISITOR]);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function globalAllowed(): bool
|
private function globalAllowed(): bool
|
||||||
{
|
{
|
||||||
return in_array($this->config->get('system', 'community_page_style'), [Community::GLOBAL, Community::LOCAL_AND_GLOBAL]);
|
return in_array($this->config->get('system', 'community_page_style'), [Community::GLOBAL, Community::LOCAL_AND_GLOBAL, Community::DISABLED_VISITOR]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue