02-21-07 06:16 PM
Hi Torben,
I would suggest to hide it if the following condition is false:
CmsHttpContext.Current.UserCanModifySite
This will be true as well for subscribers and if the site is read-only.
Cheers,
Stefan
"Torben" <combi.camp@gmail.com> wrote in message
news:1172070242.593001.186010@s48g2000cws.googlegroups.com...
> Hi,
>
> is there a good way (programmatically) to find out if i'm running a
> "read" (production) or "read write" (authoring) environment?
>
> The reason for asking is, that I want to hide the FloatingConsole-
> javascript code in the production environment.
>
> Best Regards
> Torben
>
[ Post a follow-up to this message ]
|