File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -22,4 +22,23 @@ protected function _construct()
22
22
{
23
23
$ this ->_init (\Magento \User \Model \User::class, \Magento \User \Model \ResourceModel \User::class);
24
24
}
25
+
26
+ /**
27
+ * Collection Init Select
28
+ *
29
+ * @return $this
30
+ */
31
+ protected function _initSelect ()
32
+ {
33
+ parent ::_initSelect ();
34
+ $ this ->getSelect ()->join (
35
+ ['user_role ' => $ this ->getTable ('authorization_role ' )],
36
+ 'main_table.user_id = user_role.user_id ' ,
37
+ []
38
+ )->join (
39
+ ['detail_role ' => $ this ->getTable ('authorization_role ' )],
40
+ 'user_role.parent_id = detail_role.role_id ' ,
41
+ ['role_name ' ]
42
+ );
43
+ }
25
44
}
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