Reject replies when author is blocked by thread owner in Model\Item::insert

- Move user-level item permission to Model\Item::isAllowedByUser
- Add user-level check for comments on top-level item
This commit is contained in:
Hypolite Petovan 2020-11-11 02:50:22 -05:00
parent 5e76def1ff
commit ffc364f2a4
2 changed files with 47 additions and 20 deletions

View file

@ -64,7 +64,7 @@ class User
{
$cdata = Contact::getPublicAndUserContacID($cid, $uid);
if (empty($cdata)) {
return;
return false;
}
$public_blocked = false;
@ -127,7 +127,7 @@ class User
{
$cdata = Contact::getPublicAndUserContacID($cid, $uid);
if (empty($cdata)) {
return;
return false;
}
$public_ignored = false;