调整权限
parent
8f173ae168
commit
a8a0b12031
|
|
@ -23,7 +23,7 @@ class DealerEditLvl extends RowAction
|
|||
*/
|
||||
protected function authorize($user): bool
|
||||
{
|
||||
return $user->can('dcat.admin.users.edit_agent');
|
||||
return $user->can('dcat.admin.dealers.edit_lvl');
|
||||
}
|
||||
|
||||
public function render()
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ class DealerOrderPaid extends RowAction
|
|||
*/
|
||||
protected function authorize($user): bool
|
||||
{
|
||||
return $user->can('dcat.admin.dealers.paid');
|
||||
return $user->can('dcat.admin.dealer_orders.paid');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ class DealerOrderShipping extends RowAction
|
|||
*/
|
||||
protected function authorize($user): bool
|
||||
{
|
||||
return $user->can('dcat.admin.dealers.shipping');
|
||||
return $user->can('dcat.admin.dealer_orders.shipping');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ return [
|
|||
'labels' => [
|
||||
'DealerOrder' => '订单管理',
|
||||
'dealer-orders' => '订单管理',
|
||||
'dealer-manager-orders' => '系统订单',
|
||||
],
|
||||
'fields' => [
|
||||
'sn' => '订单编号',
|
||||
|
|
|
|||
Loading…
Reference in New Issue