Open aerni opened 10 months ago
Can you provide the code you used to add the custom section?
I just used the CP nav builder. This is my preference:
nav:
reorder: true
sections:
top_level: '@inherit'
content: '@inherit'
civicrm:
action: '@create'
display: CiviCRM
items:
'content::collections::events_civicrm':
action: '@move'
display: Events
'content::collections::communities_civicrm':
action: '@move'
display: Communities
'content::collections::personen_civicrm':
action: '@move'
display: Personen
'content::collections::locations_civicrm':
action: '@move'
display: Locations
Gotcha. You said custom cp section I thought you mean like nav items for an addon.
Bug description
I've got a custom CP navigation in a multi-site setup. In the example illustrated in the video, the user is only authorized to view the
primary
site. The custom CP sectionCIVICRM
contains collections that are only configured for thesecondary
site. However, the user can still see theCIVICRM
section. He shouldn't be able to see the section, as he doesn't have the permissions to edit thesecondary
site. Funny enough, the section disappears when visiting the collections route, which is the expected state. But it is visible on all other routes.https://github.com/statamic/cms/assets/23167701/15f758d9-b4e0-46fd-8c61-9ec904609687
How to reproduce
primary
andsecondary
siteprimary
sitesecondary
siteLogs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Antlers Parser
None
Additional details
No response