added role control

This commit is contained in:
vedatakd 2020-11-02 19:32:04 +03:00
parent ccbb9611cf
commit b621561e6d

View File

@ -614,6 +614,9 @@ class AdvsController extends PublicController
}
$isActiveDopings = $this->adv_model->is_enabled('dopings');
if ($isActiveDopings) {
$isActiveDopings = doping_check_role();
}
return $this->view->make('visiosoft.module.advs::new-ad/preview/preview',
compact('adv', 'categories', 'features', 'isActiveDopings', 'configurations'));