mirror of
https://github.com/openclassify/openclassify.git
synced 2026-03-10 10:15:28 -05:00
added role control
This commit is contained in:
parent
ccbb9611cf
commit
b621561e6d
@ -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'));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user