| @@ 30-40 (lines=11) @@ | ||
| 27 | return Change::class; |
|
| 28 | } |
|
| 29 | ||
| 30 | public function behaviors() |
|
| 31 | { |
|
| 32 | return array_merge(parent::behaviors(), [ |
|
| 33 | [ |
|
| 34 | 'class' => EasyAccessControl::class, |
|
| 35 | 'actions' => [ |
|
| 36 | '*' => 'resell', |
|
| 37 | ], |
|
| 38 | ], |
|
| 39 | ]); |
|
| 40 | } |
|
| 41 | ||
| 42 | public function actions() |
|
| 43 | { |
|
| @@ 28-39 (lines=12) @@ | ||
| 25 | ||
| 26 | class PurseController extends \hipanel\base\CrudController |
|
| 27 | { |
|
| 28 | public function behaviors() |
|
| 29 | { |
|
| 30 | return array_merge(parent::behaviors(), [ |
|
| 31 | [ |
|
| 32 | 'class' => EasyAccessControl::class, |
|
| 33 | 'actions' => [ |
|
| 34 | 'update' => 'bill.update', |
|
| 35 | '*' => 'bill.read', |
|
| 36 | ], |
|
| 37 | ], |
|
| 38 | ]); |
|
| 39 | } |
|
| 40 | ||
| 41 | public function actions() |
|
| 42 | { |
|
| @@ 23-34 (lines=12) @@ | ||
| 20 | ||
| 21 | class SaleController extends \hipanel\base\CrudController |
|
| 22 | { |
|
| 23 | public function behaviors() |
|
| 24 | { |
|
| 25 | return array_merge(parent::behaviors(), [ |
|
| 26 | [ |
|
| 27 | 'class' => EasyAccessControl::class, |
|
| 28 | 'actions' => [ |
|
| 29 | 'delete' => 'sale.delete', |
|
| 30 | '*' => 'sale.read', |
|
| 31 | ], |
|
| 32 | ], |
|
| 33 | ]); |
|
| 34 | } |
|
| 35 | ||
| 36 | public function actions() |
|
| 37 | { |
|
| @@ 29-39 (lines=11) @@ | ||
| 26 | /** |
|
| 27 | * @inheritDoc |
|
| 28 | */ |
|
| 29 | public function behaviors() |
|
| 30 | { |
|
| 31 | return array_merge(parent::behaviors(), [ |
|
| 32 | 'access-bill' => [ |
|
| 33 | 'class' => EasyAccessControl::class, |
|
| 34 | 'actions' => [ |
|
| 35 | '*' => 'bill.charges.read', |
|
| 36 | ], |
|
| 37 | ], |
|
| 38 | ]); |
|
| 39 | } |
|
| 40 | ||
| 41 | /** |
|
| 42 | * @inheritDoc |
|