Commit 7c381fff authored by Mark Harding's avatar Mark Harding

(fix): filter out blocked and unable to interact - resolves #488

parent d52b7e49
No related merge requests found
Pipeline #66727624 (#764) passed with stages
in 7 minutes and 27 seconds
......@@ -74,9 +74,11 @@ class conversations implements Interfaces\Api
$blocked = false;
$unavailable = false;
if (is_array($response['participants']) && false) {
if (is_array($response['participants'])) {
foreach ($response['participants'] as $participant) {
if (!Security\ACL::_()->interact(Core\Session::getLoggedInUser(), $participant['guid'])) {
if (Core\Security\ACL\Block::_()->isBlocked($participant['guid'])
|| !Security\ACL::_()->interact(Core\Session::getLoggedInUser(), $participant['guid'])
) {
$blocked = true;
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment