Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

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

Started by jb 5 years ago · 2 replies · 1036 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 Paul Hodges, 4 weeks ago
19 485 5 days ago
Support · by Lauw, 7 days ago
2 99 7 days ago
Support · by Anna, 3 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 484 3 weeks ago