mirror of
https://github.com/friendica/friendica
synced 2025-04-26 12:30:11 +00:00
Enable meta groups in Model\Group::getIdsByContactId
- Don't return early if contact isn't part of any group in PermissionSet::get
This commit is contained in:
parent
353dab166e
commit
ebf60cee33
2 changed files with 12 additions and 7 deletions
|
@ -82,14 +82,9 @@ class PermissionSet
|
|||
$groups = Group::getIdsByContactId($contact_id);
|
||||
}
|
||||
|
||||
if (empty($groups) || !is_array($groups)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
$group_str = '<<>>'; // should be impossible to match
|
||||
|
||||
foreach ($groups as $g) {
|
||||
$group_str .= '|<' . intval($g) . '>';
|
||||
foreach ($groups as $group_id) {
|
||||
$group_str .= '|<' . preg_quote($group_id) . '>';
|
||||
}
|
||||
|
||||
$contact_str = '<' . $contact_id . '>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue