Archived
1
0
Fork 0

app/config/acl.yml: add admin role and backend zone.

This commit is contained in:
Henrik Hautakoski 2018-10-10 00:28:51 +02:00
parent 4e059b3c54
commit 8aa1ceb2cb
No known key found for this signature in database
GPG key ID: 96765B12FEAC4745

View file

@ -8,7 +8,12 @@
# "allowed-zones" key. Per default a role is denied access to all zones. # "allowed-zones" key. Per default a role is denied access to all zones.
# #
# - Resources: # - Resources:
# Resources maps directly to controller names. # Resources maps directly to controller names. If a controller is not
# under the default module. <module>/<controller> format is used instead.
#
# A special wildcard "*" character can be used to allow access to all
# controllers (most likely only useful for non-default modules).
#
# There a 2 controllers/resources that are a bit special, # There a 2 controllers/resources that are a bit special,
# index and error resources are always accessible by everyone (e.g. they # index and error resources are always accessible by everyone (e.g. they
# are not part of the ACL). # are not part of the ACL).
@ -18,10 +23,8 @@
# #
# Zones # Zones
# #
# Zones defines a group of resources. for example an "backend" zone can # Zones defines as 1 or more resources. for example an "backend" zone can
# have 2 controllers/resources (site-config, user-manager) # have 2 controllers/resources (site-config, user-manager)
#
# Zones might be implemented using modules later.
acl: acl:
roles: roles:
@ -35,9 +38,9 @@ acl:
admin: admin:
inherits: user inherits: user
description: Administrators description: Administrators
# allowed-zones: backend allowed-zones: backend
zones: zones:
public: [ auth, api ] public: [ auth, api ]
user: [ user, callback ] user: [ user, callback ]
#backend: [ site, user-man ] backend: backend/*