Check if site is "read" or "read write" ?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Check if site is "read" or "read write" ?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Check if site is "read" or "read write" ?  
Torben


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-21-07 06: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






[ Post a follow-up to this message ]



    Re: Check if site is "read" or "read write" ?  
Stefan Goßner [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Re: Check if site is "read" or "read write" ?  
Torben


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-22-07 12:14 AM

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






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:37 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register