Thanks. And I agree, Collect will need this too.
Your code looks right. I can't actually think of any flaws to this approach
(said somewhat nervously ;-)).
In essence, the new semantics for Select() and Collect() are security aware and
always skip over any topics that the user doesn't have access to.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Davidson
Sent: Friday, September 28, 2007 12:34 PM
To: FlexWiki Users Mailing List
Subject: Re: [Flexwiki-users] DenyRead and WikiTalk
I need to treat BELArray::Collect the same way. Code for it would be:
[ExposedMethod(ExposedMethodFlags.NeedContext, "Evalute the given block
once for each object in the array; answer a new array containing the result of
each block evaluation.")]
public BELArray Collect(ExecutionContext ctx, Block block)
{
BELArray answer = new BELArray();
foreach (IBELObject each in Array)
{
try
{
ArrayList parms = new ArrayList();
parms.Add(each);
answer.Add(block.Value(ctx, parms));
}
catch (FlexWikiAuthorizationException ex)
{
if (ex != null)
{
ex = null;
}
}
}
return answer;
}
this is all that I can find quickly.
John Davidson
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flexwiki-users mailing list
Flexwiki-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexwiki-users