<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&#39;s the best way? Is there a permission that defines &quot;being<br>
authenticated&quot; more directly?<br></blockquote>Great question.&nbsp; I&#39;ve thought about this before and kind of forgot about it.&nbsp; It is a little hairy, but what you&#39;re doing is right as far as I can tell.&nbsp; 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.&nbsp; The set own password permission is assigned to the Authenticated role, so you&#39;re okay there....&nbsp; Would be nice to be able to use a logged in permission for those sort of things though wouldn&#39;t it?<br>
<br><br><div class="gmail_quote">On Mon, Jan 26, 2009 at 6:43 AM, Kees Hink <span dir="ltr">&lt;<a href="mailto:hink@gw20e.com">hink@gw20e.com</a>&gt;</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&#39;ve set permission=&quot;cmf.SetOwnPassword&quot; 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&#39;s the best way? Is there a permission that defines &quot;being<br>
authenticated&quot; 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&#39;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>