create the disabled_registration site tag that allows to remove a specific site from...
[plcapi.git] / PLC / Accessors / Accessors-5.0-rc16.readme
1 Starting with 5.0-rc16, tag types do not have a so-called
2 'min_role_id' any more`, but rather a set of roles exactly like a
3 person this impacts the way accessors are defined, as
4 'define_accessors' does not support min_role_id anymore in addition,
5 there was a rather confusing redundancy between 'min_role_id' and
6 'set_roles', as the latter was used for implementing the access rights
7 to the 'Set' method
8
9 If you have defined accessors local to your site in Accessors_site.py,
10 that actually use the min_role_id feature, then here is how to tweak
11 them from this release on.
12
13 If you want to keep the same kind of behaviour, just replace
14 min_role_id with set_roles as per the table below
15
16 min_role_id     |       set_roles
17 ------------------------------------
18 10              | ['admin']
19 20              | ['admin','pi']
20 30              | ['admin','pi','user']
21 40              | ['admin','pi','user','tech']
22
23 Now you might wish to take advantage of the new flexibility instead.
24
25 Also please note that 'node' is now an explicit role, so if e.g. a
26 slicetag needs to be set from the node directly, then it needs to have
27 the 'node' role as well.
28