getgrav / grav-plugin-login

Grav Login Plugin
http://getgrav.org
MIT License
44 stars 54 forks source link

Bug: Page ACLs not respected in plain view nor admin view #287

Open jgonyea opened 2 years ago

jgonyea commented 2 years ago

Goal: Restrict pages based upon what group a user belongs to

Process:

Expectation:

  1. When not logged in, neither page allows anonymous access
  2. When logged in as user1:
    1. Page 1 is viewable
    2. Page 1 is editable in admin
    3. Page 2 is not viewable
    4. Page 2 is not editable in admin

Observation:

  1. Neither page allow anon access and prompts for login. This seems correct.
  2. When logged in as user1:
    1. Page 1 is not viewable and the message "You don't have access to this page..." is displayed (this is not expected)
    2. Page 1 is editable in admin (this is expected)
    3. Page 2 is not viewable and the message "You don't have access to this page..." is displayed (this is expected)
    4. Page 2 is editable in admin (this is not expected), and I get a toast notification in the top right about "Fobidden Access"

I've attached an example setup for the situation above. user.zip