Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > CMServer General > CmsApplicationC...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 10683 of 10773
Post > Topic >>

CmsApplicationContext.UserHasRightToBrowse Always returns true

by xerxesb@[EMAIL PROTECTED] Jul 27, 2008 at 08:41 PM

Hi,

We're writing a windows service to compliment an ASP.NET 1.1 MCMS
website and web-based do***ent management system we custom built some
time ago.

The service loops through a list of do***ents in our custom do***ent
management system which contains the CMS Posting and Channel GUIDs of
the do***ents in the CMS itself. The two databases (MCMS and our
custom DB) are kept in sync when user's publish content via the
do***ent management system and it publishes the content to the CMS and
also records the relevant information in the custom database.

In our new service, we need to connect the application to the MCMS
server and check if a user has security to see a particular do***ent
selected from the custom database. I was hoping to do something like
the code below but it doesn't work. The security is set up using
normal Site Manager security services and Active Directory profiles.

CmsApplicationContext context = new CmsApplicationContext();

context.AuthenticateAsGuest();


bool result = context.UserHasRightToBrowse(inputGuid); // can be
posting or channel GUID
Assert.IsFalse(result);


In the above code, "result" is always returning true. After setting
the permissions on the channel, and navigating to the do***ent via the
website as a non-logged-in user, i am correctly disallowed access.

What is different between the CmsApplicationContext and the
CmsHttpContext such that the CmsApp doesn't appear to honour the
security restrictions?

Many thanks,
Xerxes.
 




 6 Posts in Topic:
CmsApplicationContext.UserHasRightToBrowse Always returns true
xerxesb@[EMAIL PROTECTED]  2008-07-27 20:41:46 
Re: CmsApplicationContext.UserHasRightToBrowse Always returns tr
=?iso-8859-1?Q?Stefan_Go=  2008-07-28 14:46:10 
Re: CmsApplicationContext.UserHasRightToBrowse Always returns tr
=?iso-8859-1?Q?Stefan_Go=  2008-07-28 14:46:30 
Re: CmsApplicationContext.UserHasRightToBrowse Always returns tr
xerxesb@[EMAIL PROTECTED]  2008-07-28 17:00:59 
Re: CmsApplicationContext.UserHasRightToBrowse Always returns tr
xerxesb@[EMAIL PROTECTED]  2008-07-29 00:09:59 
Re: CmsApplicationContext.UserHasRightToBrowse Always returns tr
xerxesb@[EMAIL PROTECTED]  2008-08-04 22:03:46 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Dec 4 14:57:34 CST 2008.