mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#2445 When auto approve is closed, the owner can't see his ad
This commit is contained in:
parent
2a0ed75c9d
commit
06cab5b203
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user