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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

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

Started by jb 4 years ago · 2 replies · 678 views
4 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
3 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

3 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 Thomas, 1 week ago
2 55 13 hours ago
Support · by Anna, 3 days ago
2 60 15 hours ago
Support · by Justin Young, 16 hours ago
1 31 16 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 58 5 days ago