diff --git a/product/ERP5/Document/ExtFolder.py b/product/ERP5/Document/ExtFolder.py index 0d98cedb2092b7bccfa73b42c9f4fda846b80e53..1337a122516defbdb2daa08d9deb69af50ed4187 100644 --- a/product/ERP5/Document/ExtFolder.py +++ b/product/ERP5/Document/ExtFolder.py @@ -97,7 +97,7 @@ class ExtFolder( XMLObject ): repository = os.path.join(*ExtFile._repository) return os.path.sep.join((instance_home, repository, self.getPath())) - security.declareProtected('Manage portal', 'PUT_factory') + security.declareProtected('Manage portal', 'generateRpmHeaderList') def generateRpmHeaderList(self): """Run genhdlist on the directory behind this object. """ @@ -105,7 +105,7 @@ class ExtFolder( XMLObject ): if status != 0: raise RuntimeError, "failed in executing genhdlist" - security.declareProtected('Manage portal', 'PUT_factory') + security.declareProtected('Manage portal', 'generateBt5HeaderList') def generateBt5HeaderList(self): """Run genbt5list on the directory behind this object. """ @@ -117,4 +117,4 @@ class ExtFolder( XMLObject ): """Called before deleting this object. """ self._v_deletion = Deletion(self._getRepositoryPath()) - XMLObject.manage_beforeDelete(self, item, container) \ No newline at end of file + XMLObject.manage_beforeDelete(self, item, container)