[Zope-CMF] Re: [dev] small WebDAV improvement

yuppie y.2004_ at wcm-solutions.de
Mon Aug 23 08:05:08 EDT 2004


Sidnei da Silva wrote:
> On Sun, Aug 22, 2004 at 08:51:29PM +0200, yuppie wrote:
> | If there are no objections or better ideas, I'd like to add this code to 
> | PortalFolder (CMF 1.5 and HEAD):
> | 
> |     def listDAVObjects(self):
> |         if _checkPermission(ManagePortal, self):
> |             return self.objectValues()
> |         else:
> |             return self.listFolderContents()
> | 
> | This way hidden objects like tools are only shown to managers.
> 
> Just to confirm, listFolderContents also hides objects the user is not
> allowed to see? 

Yes.

Cheers, Yuppie



More information about the Zope-CMF mailing list