Julien Anguenot wrote:
>
>>>If he clicks on the url, he is asked for login. How can I
>>>test in the pt, if that item is accessible by the user, so that the link
>>>is not displayed at all.
>>>
>
>
> You may use the checkPerm utility defined within the main_template.pt:
>
> <tal:block condition="checkPerm('View', item)>
> <!-- display the item URL -->
> </tal:block>
>
> Note, that checkPerm is an alias for portal_membership.checkPermission()
>
Thanks Julien, I tried that, but it didn't achieve the result I wanted.
Perhaps I am doing something wrong.
Here is my usecase:
I have in sections a studentsfolder, where I gave the localrole
"SectionReader" to all users.
In this studentsfolder I have one folder for each student, in this
folder I block acquisition for local roles, and uncheck the
SectionReader localrole.
But the folder is still accessible by anonymous. I want to achieve that
the Student is only accessible, by the owner and the StudentManager.
How can I acchieve this ?
--
Mit freundlichen Grüßen Joachim Schmitz
......................................................................
AixtraWare eK ..Joachim Schmitz ..www.aixtraware.de ..t: +49-2464-8851
Hüsgenstr. 33a .....d-52457 Aldenhoven .............f: +49-2464-905163
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel