Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Page access: Advanced->Visible vs Security->PageAccess

Started by jb 5 years ago · 2 replies · 1420 views
5 years ago

Hey community, I'm confused with the access control of Grav.

I have a set of pages that I want to be visible only to me, while I edit them. Therefore, I don't want them to appear in the navigation menu of non Admin users.

What I've tried:

  • On the top level page, I set Security->PageAccess->"Menu Visibility Requires Access" to Yes and Page Access to admin.login
  • On children pages, I set "Inherit permissions" in Security->PagePermissions

As a result, it works in a way that only I, the admin, can see the pages. Yet all users, including non-loggedin users, can see my pages titles in the navigation menu. I need them hidden.

If I Disable Visible in the Advanced menu of the top level page, then the page is hidden from the navigation menu for all users, including the admin.

Is it a bug? If I refer to https://learn.getgrav.org/17/admin-panel/page/security, the sentence is clear "Set to Yes if page should be shown in menus only if user can access them.", yet it is shown in menus.

Grav and Theme: latest versions, Admin and Login plugins, Quark

👍 2
4 years ago

I have exactly the same issue - I am confused about the difference between Page Access and Page Permissions in the panel below:

image|690x210

The Principle of Least Astonishment does not seem to apply!

Nick

4 years ago

/forum/general/hide-menu-left-side-navigation-bar-from-unauthenticated-users-t5961?u=nick1 this solved my problem with page access/visibility/inheritance

Suggested topics

Topic Participants Replies Views Activity
Support · by TomW, 2 weeks ago
8 227 9 hours ago
Support · by alex, 2 months ago
8 667 24 hours ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 159 3 days ago
Support · by TomW, 6 days ago
2 106 6 days ago