File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -22,4 +22,18 @@ protected function _construct()
22
22
{
23
23
$ this ->_init (\Magento \User \Model \User::class, \Magento \User \Model \ResourceModel \User::class);
24
24
}
25
+
26
+ public function _initSelect ()
27
+ {
28
+ parent ::_initSelect ();
29
+ $ this ->getSelect ()->join (
30
+ ['user_role ' => $ this ->getTable ('authorization_role ' )],
31
+ 'main_table.user_id = user_role.user_id ' ,
32
+ []
33
+ )->join (
34
+ ['detail_role ' => $ this ->getTable ('authorization_role ' )],
35
+ 'user_role.parent_id = detail_role.role_id ' ,
36
+ ['role_name ' ]
37
+ );
38
+ }
25
39
}
Original file line number Diff line number Diff line change 74
74
<argument name =" index" xsi : type =" string" >email</argument >
75
75
</arguments >
76
76
</block >
77
+ <block class =" Magento\Backend\Block\Widget\Grid\Column" as =" role_name" >
78
+ <arguments >
79
+ <argument name =" header" xsi : type =" string" translate =" true" >Role</argument >
80
+ <argument name =" index" xsi : type =" string" >role_name</argument >
81
+ <argument name =" filter_index" xsi : type =" string" >detail_role.role_name</argument >
82
+ </arguments >
83
+ </block >
77
84
<block class =" Magento\Backend\Block\Widget\Grid\Column" as =" is_active" >
78
85
<arguments >
79
86
<argument name =" header" xsi : type =" string" translate =" true" >Status</argument >
You can’t perform that action at this time.
0 commit comments