mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#2773 emlak24 edit all area
This commit is contained in:
parent
32e5e2e299
commit
70677ab331
@ -484,7 +484,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->getStatus() === 'approved') || $adv->created_by_id === \auth()->id())) {
|
||||
// Check if created by exists
|
||||
if (!$adv->created_by) {
|
||||
$this->messages->error('visiosoft.module.advs::message.this_ad_is_not_valid_anymore');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user