Deleting adv that doesnt belong to the user

This commit is contained in:
Rm Yakovenko 2021-11-05 12:23:04 +02:00
parent ff99effc53
commit 1d07d301c5

View File

@ -715,6 +715,7 @@ class AdvsController extends PublicController
if ($ad->created_by_id != Auth::id()) {
$this->messages->error(trans('visiosoft.module.advs::message.delete_author_error'));
return back();
}
$ad->delete();