|
@@ -99,7 +99,7 @@ discard block |
|
|
block discarded – undo |
|
99
|
99
|
foreach (Request::input('privileges', []) as $moduleId => $data) { |
|
100
|
100
|
//Check Menu |
|
101
|
101
|
|
|
102
|
|
- $arrs = array_get_keys($data, ['is_visible', 'is_create', 'is_read', 'is_edit', 'is_delete',], 0); |
|
|
102
|
+ $arrs = array_get_keys($data, ['is_visible', 'is_create', 'is_read', 'is_edit', 'is_delete', ], 0); |
|
103
|
103
|
$this->savePermissions($id, $moduleId, $arrs); |
|
104
|
104
|
} |
|
105
|
105
|
|
|
@@ -185,7 +185,7 @@ discard block |
|
|
block discarded – undo |
|
185
|
185
|
$this->col[] = [ |
|
186
|
186
|
'label' => 'Superadmin', |
|
187
|
187
|
'name' => 'is_superadmin', |
|
188
|
|
- 'callback' => function ($row) { |
|
|
188
|
+ 'callback' => function($row) { |
|
189
|
189
|
return ($row->is_superadmin) ? "<span class='label label-success'>Superadmin</span>" : "<span class='label label-default'>Standard</span>"; |
|
190
|
190
|
}, |
|
191
|
191
|
]; |
Please login to merge, or discard this patch.