Hi,
The reason for that is that you wrap the Views command with a div,
and that div is not affected by the rights of the inner component/
page. For example, by default in Pier you get in the Environment page:
<div class="box"><h1>Views</h1>+views+</div>
If you want to control the visibility of the surrounding div as well,
you can just create a page with only the above content, include the
page in the Environment without any surrounding div and then give the
page the wanted rights.
Cheers,
Doru
On Oct 14, 2007, at 12:55 PM, tournesolo(a)gmail.com wrote:
Thanks Tudor - but that doesn't work, or rather it
doesn't do what I
wanted.
I already have the unix security installed and setup, but if you make
the ('views') component visible only to admin, Pier still shows the
box corresponding to the widget, with its title but no commands/views
in it (try it!). What I want on the other hand is that the whole
widget is absent (since it is empty of functionality now) unless the
admin user is logged in.
So the question stands: how do I conditionally show a widget such as
the commands or views widget in the main environment?
Michal
_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
--
www.iam.unibe.ch/~girba
www.iam.unibe.ch/~girba/blog/
"Problem solving efficiency grows with the abstractness level of
problem understanding."