合并最新主线并保留风险平台横向页签
This commit is contained in:
commit
f8c9c6ef2d
@ -630,6 +630,7 @@ $navigation = [
|
||||
'slug' => 'financial-risk-control',
|
||||
'title' => '财务经营风险管控',
|
||||
'icon' => 'security',
|
||||
// Platform views are horizontal tabs inside the page, not sidebar entries.
|
||||
'pages' => [],
|
||||
],
|
||||
[
|
||||
|
||||
@ -128,6 +128,21 @@ class UserPermissionsTest extends FeatureTestCase
|
||||
$this->assertSame(['subject-trademark-rules'], $pages->pluck('slug')->all());
|
||||
}
|
||||
|
||||
public function test_financial_risk_control_section_permission_keeps_platforms_inside_page(): void
|
||||
{
|
||||
$regular = $this->account('user');
|
||||
$subject = 'user_'.$regular->id;
|
||||
setting()->set('system.sidebar_permissions', [
|
||||
'configured' => [$subject],
|
||||
'subjects' => [$subject => ['financial-risk-control']],
|
||||
]);
|
||||
|
||||
$navigation = SidebarPermissions::navigationFor($regular);
|
||||
|
||||
$this->assertSame(['financial-risk-control'], array_column($navigation, 'slug'));
|
||||
$this->assertSame([], $navigation[0]['pages']);
|
||||
}
|
||||
|
||||
public function test_legacy_small_payment_permission_follows_the_page_to_financial_operations(): void
|
||||
{
|
||||
$regular = $this->account('user');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user