6
0
Fork 0

调整权限

release
vine_liutk 2022-01-24 13:59:43 +08:00
parent 8f173ae168
commit a8a0b12031
4 changed files with 4 additions and 3 deletions

View File

@ -23,7 +23,7 @@ class DealerEditLvl extends RowAction
*/ */
protected function authorize($user): bool protected function authorize($user): bool
{ {
return $user->can('dcat.admin.users.edit_agent'); return $user->can('dcat.admin.dealers.edit_lvl');
} }
public function render() public function render()

View File

@ -26,7 +26,7 @@ class DealerOrderPaid extends RowAction
*/ */
protected function authorize($user): bool protected function authorize($user): bool
{ {
return $user->can('dcat.admin.dealers.paid'); return $user->can('dcat.admin.dealer_orders.paid');
} }
/** /**

View File

@ -28,7 +28,7 @@ class DealerOrderShipping extends RowAction
*/ */
protected function authorize($user): bool protected function authorize($user): bool
{ {
return $user->can('dcat.admin.dealers.shipping'); return $user->can('dcat.admin.dealer_orders.shipping');
} }
/** /**

View File

@ -4,6 +4,7 @@ return [
'labels' => [ 'labels' => [
'DealerOrder' => '订单管理', 'DealerOrder' => '订单管理',
'dealer-orders' => '订单管理', 'dealer-orders' => '订单管理',
'dealer-manager-orders' => '系统订单',
], ],
'fields' => [ 'fields' => [
'sn' => '订单编号', 'sn' => '订单编号',