mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-12 16:26:07 -06:00
#1293 [messages-module] Prevent users from viewing non related messages
This commit is contained in:
parent
f6d9942627
commit
c1998c6af0
@ -105,6 +105,7 @@ class AdvCriteria extends EntryCriteria
|
||||
{
|
||||
$advModel = new AdvModel();
|
||||
$adv = $advModel->newQuery()->find($id);
|
||||
if ($adv) {
|
||||
if (!$adv->cover_photo) {
|
||||
$adv->cover_photo = $this->image->make('visiosoft.theme.base::images/no-image.png', 'path')->url();
|
||||
} else if (
|
||||
@ -113,6 +114,7 @@ class AdvCriteria extends EntryCriteria
|
||||
) {
|
||||
$adv->cover_photo = '/' . $adv->cover_photo;
|
||||
}
|
||||
}
|
||||
return $adv;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user