Skip to content

[6.x] Respect collection permissions in the navigation page selector - #15163

Merged
jasonvarga merged 2 commits into
6.xfrom
nav-collection-tree-gate
Aug 11, 2026
Merged

[6.x] Respect collection permissions in the navigation page selector#15163
jasonvarga merged 2 commits into
6.xfrom
nav-collection-tree-gate

Conversation

@jasonvarga

@jasonvarga jasonvarga commented Aug 11, 2026

Copy link
Copy Markdown
Member

When a navigation is linked to a single structured collection, its page selector offers a tree view of that collection alongside the list. The tree was being offered regardless of whether the user has permission to view that collection.

Now it's only included when they do, and the selector falls back to the list.

Also drops a duplicated $nav->collections()->first() call while I was in there.

@jasonvarga
jasonvarga merged commit 87e7c2d into 6.x Aug 11, 2026
65 checks passed
@jasonvarga
jasonvarga deleted the nav-collection-tree-gate branch August 11, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant