Security - View vs Access Contents
Newbie questions - Zope experience 3 days - be gentle with me ! (1) I want to set the security properties of a sub-folder to relate to a specific user. So I uncheck View for the anonymous user to "force" a Zope login. But it doesn't appear to work. So I uncheck Access Contents too - and it does seem to work. What is the difference between these 2 permissions ? (2) Also I am struggling then to make Zope check the AUTHENTICATED_USER against a property set for the folder which contains the authorised user's initials (which are the same as login name). I am trying to use a standard DTML method but set individual property elements for each sub-folder. Is this OK as an approach ? Or is there a better one ? My DTML code is this ... but it's clearly wrong ! [User is name or property element set for the folder.] <dtml-if expr="AUTHENTICATED_USER.getUserName()==objectValues('User')"> <br>Welcome <br> <dtml-else> <br>You should not be here.<br> </dtml-if> Any advice on either would be much appreciated. Tim Considine
participants (1)
-
Tim Considine