@@ 21-35 (lines=15) @@ | ||
18 | /** |
|
19 | * @inheritdoc |
|
20 | */ |
|
21 | public function behaviors() |
|
22 | { |
|
23 | return [ |
|
24 | 'access' => [ |
|
25 | 'class' => AccessControl::className(), |
|
26 | 'rules' => [ |
|
27 | [ |
|
28 | 'allow' => true, |
|
29 | 'actions' => ['index', 'view', 'update'], |
|
30 | 'roles' => [User::ROLE_ADMIN], |
|
31 | ], |
|
32 | ] |
|
33 | ] |
|
34 | ]; |
|
35 | } |
|
36 | ||
37 | /** |
|
38 | * Lists all MailTemplate models. |
@@ 21-35 (lines=15) @@ | ||
18 | /** |
|
19 | * @inheritdoc |
|
20 | */ |
|
21 | public function behaviors() |
|
22 | { |
|
23 | return [ |
|
24 | 'access' => [ |
|
25 | 'class' => AccessControl::className(), |
|
26 | 'rules' => [ |
|
27 | [ |
|
28 | 'allow' => true, |
|
29 | 'actions' => ['index', 'view', 'update'], |
|
30 | 'roles' => [User::ROLE_ADMIN], |
|
31 | ], |
|
32 | ], |
|
33 | ], |
|
34 | ]; |
|
35 | } |
|
36 | ||
37 | /** |
|
38 | * Lists all Option models. |
@@ 21-35 (lines=15) @@ | ||
18 | /** |
|
19 | * @inheritdoc |
|
20 | */ |
|
21 | public function behaviors() |
|
22 | { |
|
23 | return [ |
|
24 | 'access' => [ |
|
25 | 'class' => AccessControl::className(), |
|
26 | 'rules' => [ |
|
27 | [ |
|
28 | 'allow' => true, |
|
29 | 'actions' => ['index', 'view', 'update'], |
|
30 | 'roles' => [User::ROLE_ADMIN], |
|
31 | ], |
|
32 | ] |
|
33 | ] |
|
34 | ]; |
|
35 | } |
|
36 | ||
37 | /** |
|
38 | * Lists all Page models. |
@@ 21-35 (lines=15) @@ | ||
18 | /** |
|
19 | * @inheritdoc |
|
20 | */ |
|
21 | public function behaviors() |
|
22 | { |
|
23 | return [ |
|
24 | 'access' => [ |
|
25 | 'class' => AccessControl::className(), |
|
26 | 'rules' => [ |
|
27 | [ |
|
28 | 'allow' => true, |
|
29 | 'actions' => ['index', 'view', 'update'], |
|
30 | 'roles' => [User::ROLE_ADMIN], |
|
31 | ], |
|
32 | ], |
|
33 | ], |
|
34 | ]; |
|
35 | } |
|
36 | ||
37 | /** |
|
38 | * Lists all Users models. |
@@ 29-43 (lines=15) @@ | ||
26 | /** |
|
27 | * @inheritdoc |
|
28 | */ |
|
29 | public function behaviors() |
|
30 | { |
|
31 | return [ |
|
32 | 'access' => [ |
|
33 | 'class' => AccessControl::className(), |
|
34 | 'rules' => [ |
|
35 | [ |
|
36 | 'allow' => true, |
|
37 | 'actions' => ['profile', 'update', 'send-change-password-mail', 'change-password'], |
|
38 | 'roles' => ['@'], |
|
39 | ], |
|
40 | ] |
|
41 | ], |
|
42 | ]; |
|
43 | } |
|
44 | ||
45 | /** |
|
46 | * Display user profile |