Advice on Selectively Hiding Byline
Tom Lazar
lists at tomster.org
Fri Sep 7 18:08:14 UTC 2007
how about using a local utility and give it a method 'showByLine
(context, member)' which you can then use for a simple condition?
then you could implement your policy inside that method. also, you
could register different local utilities to provide different
policies in different areas of your site.
just my $0.02, hth,
tom
On 02.09.2007, at 19:52, George Lee wrote:
>
> I'm updating a very simple product of mine that allows a site to
> hide bylines
> when an object is made by certain users, and viewed by other users.
>
> Originally, I had the product look up whether a user had a global
> role in
> "rolesToHideBylineFor" or a role in "rolesToShowBylineTo". Now I
> might be
> changing it to look up whether a user or one of her groups is on an
> allowed
> list of id's. Another possibility which I don't think makes sense
> is to
> define new permissions - but it's not real security, just a visual
> change,
> and doing so would get clunky.
>
> Looking for feedback on what the most appropriate thing to do would
> be or if
> there are other suggestions -- based on what roles, user and
> groups, and
> permissions make sense for.
>
> Thanks; peace,
> George
> --
> View this message in context: http://www.nabble.com/Advice-on-
> Selectively-Hiding-Byline-tf4368640s20094.html#a12451629
> Sent from the Product Developers mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> http://lists.plone.org/mailman/listinfo/product-developers
>
More information about the Product-Developers
mailing list