#2445 When auto approve is closed, the owner can't see his ad

This commit is contained in:
Diatrex 2020-10-22 09:56:02 +03:00
parent 2a0ed75c9d
commit 06cab5b203

View File

@ -450,7 +450,7 @@ class AdvsController extends PublicController
$adv = $this->adv_repository->getListItemAdv($id);
if ($adv && (!$adv->expired()) || $adv->created_by_id === \auth()->id()) {
if ($adv && (!$adv->expired() || $adv->created_by_id === \auth()->id())) {
if ($this->adv_model->is_enabled('complaints')) {
$complaints = ComplaintsComplainTypesEntryModel::all();