|
Home > Archive > Microsoft Content Management Server > February 2007 > Check if site is "read" or "read write" ?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Check if site is "read" or "read write" ?
|
|
| Torben 2007-02-21, 1:16 pm |
| 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
| |
| Stefan Goßner [MSFT] 2007-02-21, 1: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
>
| |
| Torben 2007-02-21, 7:14 pm |
| On 21 Feb., 16:21, "Stefan Go=DFner [MSFT]"
<stef...@online.microsoft.com> wrote:
> 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
Hi Stefan,
it seems to work - thanx for you help :-)
Best Regards
Torben
|
|
|
|
|