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

User Permissions don't seem to work

Started by Muut Archive 9 years ago · 2 replies · 450 views
9 years ago

I set up a private page for approved users. The permissions I set don't seem to work (except for site.login). I can't get it to work with groups, either. Its header looks like this:
Page Header

YAML
title: Approved
access:
    site.approved: true

The test user I have is set up as follows:
user .yaml

YAML
email: [...]
access:
  site:
    login: true
    approved: true
hashed_password: [...]

For some reason, I'm still getting an Access Denied page. The page prompts me to log in when I'm not, though.

Setting up user groups like this doesn't work either:
groups.yaml

YAML
approved:
  groupname: approved
  icon: users
  readableName: 'Approved Users'
  description: 'The group of approved users'
  access:
    site:
      approved: true

User .yaml

YAML
email: [...]
access:
    site:
      login: 'true'
groups:
  - approved
hashed_password: [...]

I'm still getting an Access Denied with this user. Am I doing something wrong? It used to work like this.

9 years ago

Solved: Seems like I have to log out and in again...

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1334 9 years ago
Archive · by Muut Archive, 9 years ago
2 925 9 years ago
Archive · by Muut Archive, 9 years ago
2 4056 9 years ago
Archive · by Muut Archive, 9 years ago
1 2939 9 years ago
Archive · by Muut Archive, 9 years ago
3 1112 9 years ago