Hi!
 
I was sitting here making some test methods to display folders and file in a folder. Simplyfied:
 
<dtml-in "objectValues(['Folder','File'])">
<dtml-var title_or_id>
</dtml-in>
 
That works like it shoul do, but ....
 
Previously I added a local role with permission to 'access content' and 'view' to the site. I fired up 
my netscape and logged in as the user with the local role. Then I noticed something strange? - I
could access and view all but the newly made 'list folders and files' method. I went back, logged in
as manager and checked the permissions on the method and on the containing folder, but there is
nothing wrong with it (as far as I can tell at least).
 
Could someone be so kind to tell me what happens here? Am I plain stupid or ...?
 
Another question while I'm on (can't test it until I get the above right):
 
Will the code below only show the folders in a containing folder wich the current user owns (this is what I want),
or do I need some other code to let this magic happen (please show me)? 
 
<dtml-in "objectValues(['Folder'])">
<dtml-if "AUTHENTICATED_USER.has_role('Owner','Folder')">
<dtml-var title_or_id>
</dtml-if>
</dtml-in> 
 
Thanks in advance
 
Sture Lygren