Hi
I am trying to get the grips on accessrules and groups. It seems like I can deny users from the wrong group to access a page. All the get is a dialogbox telling them they do not have access. But that dialogbox also includes the content I am trying to protect.
Have a go. Log in with user kitch-3 passwd kitch-3 and try to visit garage
I pasted in the default.md-pages, groups.yaml and some user-files hoping you will be able to see what I am missing.
/David
Pages
==> 01.home/default.md <==
- - -
title: Home
access:
site.login: true
site.kitchen: true
site.garage: true
- - -
# Grav is Running!
## You have installed **Grav** successfully
==> 02.kitchen/default.md <==
- - -
title: Kitchen
access:
site.kitchen: true
- - -
This is the protected contents of the kitchen
==> 03.garage/default.md <==
- - -
title: Garage
access:
site.garage: true
- - -
This is the protected contents of the garage
Groups
garage:
readableName: 'Garage'
access:
site:
login: true
garage: true
kitchen:
readableName: 'Kitchen'
access:
site:
login: true
kitchen: true
Users
==> garage-1.yaml <==
email: david@ordning.se
access:
site:
login: true
garage: true
fullname: 'garage-1'
passwd: garage-1
title: Puny
groups:
- garage
state: enabled
==> garage-2.yaml <==
email: david@ordning.se
access:
site:
login: true
fullname: 'garage-2'
passwd: garage-2
title: Puny
groups:
- garage
state: enabled
==> garage-3.yaml <==
email: david@ordning.se
fullname: 'garage-3'
passwd: garage-3
title: Puny
groups:
- garage
state: enabled
==> kitch-1.yaml <==
email: david@ordning.se
access:
site:
login: true
kitchen: true
fullname: 'kitch-1'
passwd: kitch-1
title: Puny
groups:
- kitchen
state: enabled
==> kitch-2.yaml <==
email: david@ordning.se
access:
site:
login: true
fullname: 'kitch-2'
passwd: kitch-2
title: Puny
groups:
- kitchen
state: enabled
==> kitch-3.yaml <==
email: david@ordning.se
fullname: 'kitch-3'
passwd: kitch-3
title: Puny
groups:
- kitchen
state: enabled
---