mirror of
https://github.com/friendica/friendica
synced 2025-04-19 10:30:10 +00:00
More rework to make private communities working
This commit is contained in:
parent
6c0dbc1775
commit
9ac24a0f36
8 changed files with 79 additions and 67 deletions
|
@ -81,6 +81,7 @@ class Objects extends BaseModule
|
|||
$requester = HTTPSignature::getSigner('', $_SERVER);
|
||||
if (!empty($requester)) {
|
||||
$receivers = Item::enumeratePermissions($item, false);
|
||||
$receivers[] = $item['contact-id'];
|
||||
|
||||
$validated = in_array(Contact::getIdForURL($requester, $item['uid']), $receivers);
|
||||
if (!$validated) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue