[schema] explicitly declare 'add' permissions for a couple attributes
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 17 Feb 2014 11:07:38 +0100
changeset 9541 e8040107b97e
parent 9539 072bb6598776
child 9542 79b9bf88be28
[schema] explicitly declare 'add' permissions for a couple attributes
misc/migration/3.18.4_Any.py
schemas/base.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/migration/3.18.4_Any.py	Mon Feb 17 11:07:38 2014 +0100
@@ -0,0 +1,2 @@
+sync_schema_props_perms('CWSource')
+sync_schema_props_perms('CWSourceHostConfig')
--- a/schemas/base.py	Fri Feb 14 17:07:25 2014 +0100
+++ b/schemas/base.py	Mon Feb 17 11:07:38 2014 +0100
@@ -247,6 +247,7 @@
                                   'source\'s type'),
                     __permissions__={
                         'read':   ('managers',),
+                        'add':    ('managers',),
                         'update': ('managers',),
                         })
     # put this here and not in a subclass even if it's only for some sources
@@ -284,6 +285,7 @@
                                   'values defined on the source.'),
                     __permissions__={
                         'read':   ('managers',),
+                        'add':    ('managers',),
                         'update': ('managers',),
                         })