Issue 10966: Ignore "only sharer" setting for forum accounts

This commit is contained in:
Michael 2022-02-03 20:26:30 +00:00
parent 4ad528a15c
commit 695d6ce461
2 changed files with 3 additions and 3 deletions

View file

@ -2947,7 +2947,7 @@ class Contact
*/
public static function isForum($contactid)
{
$fields = ['forum', 'prv'];
$fields = ['contact-type', 'forum', 'prv'];
$condition = ['id' => $contactid];
$contact = DBA::selectFirst('contact', $fields, $condition);
if (!DBA::isResult($contact)) {
@ -2955,7 +2955,7 @@ class Contact
}
// Is it a forum?
return ($contact['forum'] || $contact['prv']);
return (($contact['contact-type'] == self::TYPE_COMMUNITY) || $contact['forum'] || $contact['prv']);
}
/**