| @@ 26-39 (lines=14) @@ | ||
| 23 | ||
| 24 | class TariffProfileController extends \hipanel\base\CrudController |
|
| 25 | { |
|
| 26 | public function behaviors() |
|
| 27 | { |
|
| 28 | return array_merge(parent::behaviors(), [ |
|
| 29 | 'access-control' => [ |
|
| 30 | 'class' => EasyAccessControl::class, |
|
| 31 | 'actions' => [ |
|
| 32 | 'create' => 'plan.create', |
|
| 33 | 'update' => 'plan.update', |
|
| 34 | 'delete' => 'plan.delete', |
|
| 35 | '*' => 'plan.read', |
|
| 36 | ], |
|
| 37 | ], |
|
| 38 | ]); |
|
| 39 | } |
|
| 40 | ||
| 41 | public function actions() |
|
| 42 | { |
|
| @@ 32-45 (lines=14) @@ | ||
| 29 | ||
| 30 | class TariffController extends \hipanel\base\CrudController |
|
| 31 | { |
|
| 32 | public function behaviors() |
|
| 33 | { |
|
| 34 | return array_merge(parent::behaviors(), [ |
|
| 35 | 'access-control' => [ |
|
| 36 | 'class' => EasyAccessControl::class, |
|
| 37 | 'actions' => [ |
|
| 38 | 'create,import,copy' => 'plan.create', |
|
| 39 | 'update' => 'plan.update', |
|
| 40 | 'delete' => 'plan.delete', |
|
| 41 | '*' => 'plan.read', |
|
| 42 | ], |
|
| 43 | ], |
|
| 44 | ]); |
|
| 45 | } |
|
| 46 | ||
| 47 | public function actions() |
|
| 48 | { |
|