Fix emulate execution on check readable content (#6251)

* Fix emulate execution on check readable content

* Update CHANGELOG.md

---------

Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com>
This commit is contained in:
Yuriy Bakhtin 2023-04-23 16:47:34 +04:00 committed by GitHub
parent e79a976369
commit 602cf23f95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,10 @@
HumHub Changelog
================
1.14.1 (Unreleased)
-------------------
- Fix #6251: Emulate execution on `readable()` content
1.14.0 (April 20, 2023)
-----------------------
- Fix #6196: Use class names for default logging targets in default common config

View File

@ -113,7 +113,7 @@ class ActiveQueryContent extends ActiveQuery
$conditionUser = 'cuser.id IS NOT NULL and cuser.visibility=' . User::VISIBILITY_ALL . ' AND content.visibility=1';
$globalCondition .= 'content.contentcontainer_id IS NULL AND content.visibility=1';
} else {
$this->emulateExecution();
return $this->emulateExecution();
}
$this->andWhere("{$conditionSpace} OR {$conditionUser} OR {$globalCondition}");