<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">But would you say it's the best way? Is there a permission that defines "being<br>
authenticated" more directly?<br></blockquote>Great question. I've thought about this before and kind of forgot about it. It is a little hairy, but what you're doing is right as far as I can tell. The problem lies in the fact that there is an Authenticated role assigned to logged-in users; although, you can only assign permissions to viewlets not roles. The set own password permission is assigned to the Authenticated role, so you're okay there.... Would be nice to be able to use a logged in permission for those sort of things though wouldn't it?<br>
<br><br><div class="gmail_quote">On Mon, Jan 26, 2009 at 6:43 AM, Kees Hink <span dir="ltr"><<a href="mailto:hink@gw20e.com">hink@gw20e.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I've set permission="cmf.SetOwnPassword" in browser/configure.zcml for a viewlet<br>
which i want to hide from Anonymous (not logged-in) users. I found this<br>
permission in Products/Five/permissions.zcml, and it does what i want.<br>
<br>
But would you say it's the best way? Is there a permission that defines "being<br>
authenticated" more directly?<br>
<br>
Remarks:<br>
- I would like to be able to achieve it without using TAL in the template.<br>
- I am aware that i could also modify the view's code to include some logic.<br>
- The viewlet is a footer, which is present on all pages.<br>
<br>
Cheers,<br>
<br>
Kees<br>
<br>
_______________________________________________<br>
Product-Developers mailing list<br>
<a href="mailto:Product-Developers@lists.plone.org">Product-Developers@lists.plone.org</a><br>
<a href="http://lists.plone.org/mailman/listinfo/product-developers" target="_blank">http://lists.plone.org/mailman/listinfo/product-developers</a><br>
</blockquote></div><br>