newsgroups-index (beta)

Current group: microsoft.public.cmserver.general

Retreiving historic posting

Retreiving historic posting  
=?Utf-8?B?QSBMb3Vpcw==?=
 Re: Retreiving historic posting  
Angus Logan [MVP]
From:=?Utf-8?B?QSBMb3Vpcw==?=
Subject:Retreiving historic posting
Date:Thu, 20 Jan 2005 12:03:02 -0800
I am trying to retrieve the historic version of a posting using the
posting.RevisionForDate() method. This method returns a posting if the
current user has author rights to the channel where the posting is present.
But when executed in CMS guest mode, this method returns null. I verified
that the CMS guest user has subscriber rights to this channel. Again if I
grant author rights to the CMS guest user to the channel then it returns the
historic posting.

My question is does the user needs to have author rights to the channel
where the posting is present. I couldn;t get any information from the
documentation.

Thanks in advance.
Aby
From:Angus Logan [MVP]
Subject:Re: Retreiving historic posting
Date:Fri, 21 Jan 2005 22:03:34 +1000
Hi Aby,

The user must be an author (or higher).

If you wanted to provide this functionality to subscribers you would need to
use a CmsApplicationContext and authenticate as auth author (or higher) and
then get the posting and call RevisionForDate under the newly authenticated
context.

Regards
--
________________________________________

Angus Logan (MCAD/MCDBA/MCP/MVP for MCMS)
Product Specialist
Microsoft Application Solutions
Data#3 Limited
E angus_logan@data3.com.au
BLOG www.anguslogan.com
________________________________________
"A Louis" wrote in message
news:BA82BDCC-8D8A-40FB-9E9D-92260ACAAF54@microsoft.com...
>I am trying to retrieve the historic version of a posting using the
> posting.RevisionForDate() method. This method returns a posting if the
> current user has author rights to the channel where the posting is
> present.
> But when executed in CMS guest mode, this method returns null. I verified
> that the CMS guest user has subscriber rights to this channel. Again if I
> grant author rights to the CMS guest user to the channel then it returns
> the
> historic posting.
>
> My question is does the user needs to have author rights to the channel
> where the posting is present. I couldn;t get any information from the
> documentation.
>
> Thanks in advance.
> Aby
   

Copyright © 2006 newsgroups-index   -   All rights reserved   -   Impressum