[turba] Re: Patch : making sure user can write current source
to display the "Add to" widget
Chuck Hagenbuch
chuck at horde.org
Thu Mar 17 18:18:59 PST 2005
Quoting Etienne Goyer <etienne.goyer at linuxquebec.com>:
> I see that the "Add to [lists...]" widget is displayed even when a
> user do not have the permission to write to the current source. I do
> not know if this is an intentionnal behavior. But, in my
> installation, adding to a list in a source you do not have write
> access to ('public' => false, not in admin()) do not work, so I
> believe we might as well not display the widget.
>
> I may have gone a little overboard on parenthesis. Sorry, I am not
> too comfortable with operators precedence.
Take a look at Turba::hasPermission(), and your patch will get much simpler.
-chuck
--
"But she goes not abroad in search of monsters to destroy." - John
Quincy Adams
More information about the turba
mailing list