Merge pull request #10870 from MrPetovan/bug/fatal-errors

Use entity property in DB condition in Module\Profile\Status
This commit is contained in:
Michael Vogel 2021-10-13 07:19:26 +02:00 committed by GitHub
commit 09771e1a76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = [];