mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
Deleting adv that doesnt belong to the user
This commit is contained in:
parent
ff99effc53
commit
1d07d301c5
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user