File tree 2 files changed +18
-5
lines changed
2 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 5
5
use yii \data \ActiveDataProvider ;
6
6
use yii \db \ActiveRecord ;
7
7
use yii \filters \VerbFilter ;
8
- use yii \web \ Controller ;
8
+ use yii \helpers \ ArrayHelper ;
9
9
use yii \web \Cookie ;
10
10
use yii \web \NotFoundHttpException ;
11
11
use Yii ;
@@ -47,14 +47,14 @@ class AdminDefaultController extends BaseController
47
47
48
48
public function behaviors ()
49
49
{
50
- return [
50
+ return ArrayHelper:: merge ( parent :: behaviors (), [
51
51
'verbs ' => [
52
52
'class ' => VerbFilter::className (),
53
53
'actions ' => [
54
54
'delete ' => ['post ' ],
55
55
],
56
56
],
57
- ];
57
+ ]) ;
58
58
}
59
59
60
60
/**
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
namespace webvimark \components ;
4
- use webvimark \modules \UserManagement \components \AccessController ;
4
+ use webvimark \modules \UserManagement \components \GhostAccessControl ;
5
5
use Yii ;
6
+ use yii \web \Controller ;
6
7
7
- class BaseController extends AccessController
8
+ class BaseController extends Controller
8
9
{
10
+ /**
11
+ * @return array
12
+ */
13
+ public function behaviors ()
14
+ {
15
+ return [
16
+ 'ghost-access ' => [
17
+ 'class ' => GhostAccessControl::className (),
18
+ ],
19
+ ];
20
+ }
21
+
9
22
/**
10
23
* Render ajax or usual depends on request
11
24
*
You can’t perform that action at this time.
0 commit comments