add escalator frame
[escalator.git] / api / etc / property-protections-roles.conf.sample
1 # property-protections-roles.conf.sample
2 #
3 # This file is an example config file for when
4 # property_protection_rule_format=roles is enabled.
5 #
6 # Specify regular expression for which properties will be protected in []
7 # For each section, specify CRUD permissions.
8 # The property rules will be applied in the order specified. Once
9 # a match is found the remaining property rules will not be applied.
10 #
11 # WARNING:
12 # * If the reg ex specified below does not compile, then
13 # escalator-api service will not start. (Guide for reg ex python compiler used:
14 # http://docs.python.org/2/library/re.html#regular-expression-syntax)
15 # * If an operation(create, read, update, delete) is not specified or misspelt
16 # then the escalator-api service will not start.
17 # So, remember, with GREAT POWER comes GREAT RESPONSIBILITY!
18 #
19 # NOTE: Multiple roles can be specified for a given operation. These roles must
20 # be comma separated.
21
22 [^x_.*]
23 create = admin,member
24 read = admin,member
25 update = admin,member
26 delete = admin,member
27
28 [.*]
29 create = admin
30 read = admin
31 update = admin
32 delete = admin