I just finished a quick set of tests. In WikiEdit there is a property
IsWritable. Inside that was the code:
if(!Federation.TopicExists(TheTopic)
return true; //assume we can create
return Federation.IsExistingTopicWritable(TheTopic);
It turns out that deleting those first 2 lines works because as you
say IsExistingTopicWritable returns the correct value even for
non-existing topics, which means the check to ensure the topic
actually exists is not required.
Should I do that update as my first commit?
John Davidson
On 7/28/07, John Davidson <[EMAIL PROTECTED]> wrote:
> The original WikiEdit makes an assumption that all new topics are
> writable and does not perform the checks. I will go back and try to
> see what happens if I remove that assumption from the code.
>
> John Davidson
>
> On 7/28/07, Craig Andera <[EMAIL PROTECTED]> wrote:
> > Looking at the code, I remember that AuthorizationProvider already returns
> > the right answer for nonexistent topics. So where is the problem coming from
> > in the web UI? I.e. what is it about the current scheme that's screwing
> > things up?
> >
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems? Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > _______________________________________________
> > Flexwiki-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/flexwiki-users
> >
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Flexwiki-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flexwiki-users