Respect the "unlisted" setting for forum posts
This commit is contained in:
parent
49b9505972
commit
b269a2da87
1 changed files with 7 additions and 2 deletions
|
@ -1918,8 +1918,13 @@ class Item
|
||||||
$owner_id = Contact::getIdForURL($self['url']);
|
$owner_id = Contact::getIdForURL($self['url']);
|
||||||
|
|
||||||
// also reset all the privacy bits to the forum default permissions
|
// also reset all the privacy bits to the forum default permissions
|
||||||
|
if ($user['allow_cid'] || $user['allow_gid'] || $user['deny_cid'] || $user['deny_gid']) {
|
||||||
$private = ($user['allow_cid'] || $user['allow_gid'] || $user['deny_cid'] || $user['deny_gid']) ? self::PRIVATE : self::UNLISTED;
|
$private = self::PRIVATE;
|
||||||
|
} elseif (DI::pConfig()->get($user['uid'], 'system', 'unlisted')) {
|
||||||
|
$private = Item::UNLISTED;
|
||||||
|
} else {
|
||||||
|
$private = Item::PUBLIC;
|
||||||
|
}
|
||||||
|
|
||||||
$psid = PermissionSet::getIdFromACL(
|
$psid = PermissionSet::getIdFromACL(
|
||||||
$user['uid'],
|
$user['uid'],
|
||||||
|
|
Loading…
Reference in a new issue