Commit 16bd38cb authored by Yoshinori Okuji's avatar Yoshinori Okuji

Fix security declarations.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13174 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2160a804
...@@ -255,7 +255,7 @@ class ImmobilisationMovement(Movement, XMLObject): ...@@ -255,7 +255,7 @@ class ImmobilisationMovement(Movement, XMLObject):
return self.getAmortisationMethodParameterForItem(None, parameter_list, **kw) return self.getAmortisationMethodParameterForItem(None, parameter_list, **kw)
security.declareProtected(Permissions.View, 'getAmortisationMethodParameter') security.declareProtected(Permissions.View, 'getAmortisationMethodParameterForItem')
def getAmortisationMethodParameterForItem(self, item, parameter_list, split_char=None, split_qty=3, **kw): def getAmortisationMethodParameterForItem(self, item, parameter_list, split_char=None, split_qty=3, **kw):
""" """
Returns a dictionary containing the value of each parameter Returns a dictionary containing the value of each parameter
...@@ -326,7 +326,7 @@ class ImmobilisationMovement(Movement, XMLObject): ...@@ -326,7 +326,7 @@ class ImmobilisationMovement(Movement, XMLObject):
return None return None
security.declareProtected(Permissions.View, 'getNeededSpecificParameterListForItem()') security.declareProtected(Permissions.View, 'getNeededSpecificParameterListForItem')
def getNeededSpecificParameterListForItem(self, item, **kw): def getNeededSpecificParameterListForItem(self, item, **kw):
""" """
Returns the list of specific parameters which are Returns the list of specific parameters which are
...@@ -339,7 +339,7 @@ class ImmobilisationMovement(Movement, XMLObject): ...@@ -339,7 +339,7 @@ class ImmobilisationMovement(Movement, XMLObject):
**kw)["needed_specific_parameter_list"] **kw)["needed_specific_parameter_list"]
security.declareProtected(Permissions.View, 'getUncontinuousNeededSpecificParameterListForItem()') security.declareProtected(Permissions.View, 'getUncontinuousNeededSpecificParameterListForItem')
def getUncontinuousNeededSpecificParameterListForItem(self, item, **kw): def getUncontinuousNeededSpecificParameterListForItem(self, item, **kw):
""" """
Returns the list of specific parameters which are Returns the list of specific parameters which are
...@@ -353,7 +353,7 @@ class ImmobilisationMovement(Movement, XMLObject): ...@@ -353,7 +353,7 @@ class ImmobilisationMovement(Movement, XMLObject):
**kw)["uncontinuous_needed_specific_parameter_list"] **kw)["uncontinuous_needed_specific_parameter_list"]
security.declareProtected(Permissions.View, 'getFacultativeSpecificParameterListForItem()') security.declareProtected(Permissions.View, 'getFacultativeSpecificParameterListForItem')
def getFacultativeSpecificParameterListForItem(self, item, **kw): def getFacultativeSpecificParameterListForItem(self, item, **kw):
""" """
Returns the list of specific parameters which are Returns the list of specific parameters which are
......
...@@ -129,7 +129,7 @@ class SynchronizationTool( SubscriptionSynchronization, PublicationSynchronizati ...@@ -129,7 +129,7 @@ class SynchronizationTool( SubscriptionSynchronization, PublicationSynchronizati
manage_addPublicationForm = DTMLFile( 'dtml/manage_addPublication', globals() ) manage_addPublicationForm = DTMLFile( 'dtml/manage_addPublication', globals() )
security.declareProtected( CMFCorePermissions.ManagePortal security.declareProtected( CMFCorePermissions.ManagePortal
, 'manageSubsciptions' ) , 'manageSubscriptions' )
manageSubscriptions = DTMLFile( 'dtml/manageSubscriptions', globals() ) manageSubscriptions = DTMLFile( 'dtml/manageSubscriptions', globals() )
security.declareProtected( CMFCorePermissions.ManagePortal security.declareProtected( CMFCorePermissions.ManagePortal
......
...@@ -471,21 +471,20 @@ class Catalog( Folder, ...@@ -471,21 +471,20 @@ class Catalog( Folder,
['manage_catalogObject', 'manage_uncatalogObject', ['manage_catalogObject', 'manage_uncatalogObject',
'manage_catalogView', 'manage_catalogFind', 'manage_catalogView', 'manage_catalogFind',
'manage_catalogSchema', 'manage_catalogFilter', 'manage_catalogFilter',
'manage_catalogAdvanced', 'manage_objectInformation', 'manage_catalogAdvanced',
'manage_catalogReindex', 'manage_catalogFoundItems', 'manage_catalogReindex', 'manage_catalogFoundItems',
'manage_catalogClear', 'manage_editSchema', 'manage_catalogClear',
'manage_reindexIndex', 'manage_main', 'manage_main',
'manage_editFilter', 'manage_editFilter',
], ],
['Manager']), ['Manager']),
('Search ZCatalog', ('Search ZCatalog',
['searchResults', '__call__', 'uniqueValuesFor', ['searchResults', '__call__', 'uniqueValuesFor',
'getpath', 'schema', 'names', 'columns', 'indexes', 'index_objects', 'all_meta_types', 'valid_roles',
'all_meta_types', 'valid_roles', 'resolve_url', 'getCatalogSearchTableIds',
'getobject', 'getObject', 'getObjectList', 'getCatalogSearchTableIds',
'getFilterableMethodList', ], 'getFilterableMethodList', ],
['Anonymous', 'Manager']), ['Anonymous', 'Manager']),
......
...@@ -130,7 +130,7 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -130,7 +130,7 @@ class ZCatalog(Folder, Persistent, Implicit):
'manage_catalogReindex', 'manage_catalogFoundItems', 'manage_catalogReindex', 'manage_catalogFoundItems',
'manage_catalogClear', 'manage_editSchema', 'manage_catalogClear', 'manage_editSchema',
'manage_reindexIndex', 'manage_main', 'manage_main',
'manage_editFilter', 'manage_editFilter',
'manage_hotReindexAll', 'manage_hotReindexAll',
...@@ -140,7 +140,7 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -140,7 +140,7 @@ class ZCatalog(Folder, Persistent, Implicit):
('Search ZCatalog', ('Search ZCatalog',
['searchResults', '__call__', 'uniqueValuesFor', ['searchResults', '__call__', 'uniqueValuesFor',
'getpath', 'schema', 'names', 'columns', 'indexes', 'index_objects', 'getpath', 'schema', 'names', 'indexes',
'all_meta_types', 'valid_roles', 'resolve_url', 'all_meta_types', 'valid_roles', 'resolve_url',
'getobject', 'getObject', 'getObjectList', 'getCatalogSearchTableIds', 'getobject', 'getObject', 'getObjectList', 'getCatalogSearchTableIds',
'getCatalogSearchResultKeys', 'getFilterableMethodList', ], 'getCatalogSearchResultKeys', 'getFilterableMethodList', ],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment