mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#125 can't edit the ad unless you are logged in with the ad profile
This commit is contained in:
parent
5b04e32550
commit
1fe399a1d1
@ -674,7 +674,7 @@ class AdvsController extends PublicController
|
||||
$adv = $advRepository->getAdvArray($id);
|
||||
|
||||
|
||||
if ($adv['created_by_id'] != Auth::id()) {
|
||||
if ($adv['created_by_id'] != Auth::id() && !Auth::user()->hasRole('admin')) {
|
||||
abort(403);
|
||||
}
|
||||
$cats_d = array();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user