Commit dfb397dc authored by Hanno Schlichting's avatar Hanno Schlichting

Order security declarations to be consistent with manage_options order

parent 9613cbb6
...@@ -90,6 +90,7 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -90,6 +90,7 @@ class ZCatalog(Folder, Persistent, Implicit):
security.setPermissionDefault(manage_zcatalog_entries, ('Manager', )) security.setPermissionDefault(manage_zcatalog_entries, ('Manager', ))
security.setPermissionDefault(manage_zcatalog_indexes, ('Manager', )) security.setPermissionDefault(manage_zcatalog_indexes, ('Manager', ))
security.setPermissionDefault(search_zcatalog, ('Anonymous', 'Manager')) security.setPermissionDefault(search_zcatalog, ('Anonymous', 'Manager'))
security.declareProtected(search_zcatalog, 'all_meta_types')
meta_type = "ZCatalog" meta_type = "ZCatalog"
icon = 'misc_/ZCatalog/ZCatalog.gif' icon = 'misc_/ZCatalog/ZCatalog.gif'
...@@ -109,19 +110,18 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -109,19 +110,18 @@ class ZCatalog(Folder, Persistent, Implicit):
) )
security.declareProtected(manage_zcatalog_entries, 'manage_main') security.declareProtected(manage_zcatalog_entries, 'manage_main')
security.declareProtected(search_zcatalog, 'all_meta_types')
security.declareProtected(manage_zcatalog_entries, 'manage_catalogView') security.declareProtected(manage_zcatalog_entries, 'manage_catalogView')
manage_catalogView = DTMLFile('dtml/catalogView', globals()) manage_catalogView = DTMLFile('dtml/catalogView', globals())
security.declareProtected(manage_zcatalog_entries, 'manage_catalogFind') security.declareProtected(manage_zcatalog_entries, 'manage_catalogIndexes')
manage_catalogFind = DTMLFile('dtml/catalogFind', globals()) manage_catalogIndexes = DTMLFile('dtml/catalogIndexes', globals())
security.declareProtected(manage_zcatalog_entries, 'manage_catalogSchema') security.declareProtected(manage_zcatalog_entries, 'manage_catalogSchema')
manage_catalogSchema = DTMLFile('dtml/catalogSchema', globals()) manage_catalogSchema = DTMLFile('dtml/catalogSchema', globals())
security.declareProtected(manage_zcatalog_entries, 'manage_catalogIndexes') security.declareProtected(manage_zcatalog_entries, 'manage_catalogFind')
manage_catalogIndexes = DTMLFile('dtml/catalogIndexes', globals()) manage_catalogFind = DTMLFile('dtml/catalogFind', globals())
security.declareProtected(manage_zcatalog_entries, security.declareProtected(manage_zcatalog_entries,
'manage_catalogAdvanced') 'manage_catalogAdvanced')
......
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