Merge pull request #10870 from MrPetovan/bug/fatal-errors
Use entity property in DB condition in Module\Profile\Status
This commit is contained in:
commit
09771e1a76
|
@ -213,7 +213,7 @@ class Status extends BaseProfile
|
|||
$permissionSets = DI::permissionSet()->selectByContactId($remote_user, $profile['uid']);
|
||||
if (!empty($permissionSets)) {
|
||||
$condition = ['psid' => array_merge($permissionSets->column('id'),
|
||||
[DI::permissionSet()->selectEmptyForUser($profile['uid'])])];
|
||||
[DI::permissionSet()->selectEmptyForUser($profile['uid'])->id])];
|
||||
}
|
||||
} elseif ($profile['uid'] == local_user()) {
|
||||
$condition = [];
|
||||
|
|
Loading…
Reference in a new issue