Hi Craig,

I have drafted a new change based on a new method
Federation.IsNewTopicWritable()
using overloads of HasPermission(NamespaceManager, TopicPermission).

I want to create test cases for the implementations of HasPermission.
It looks like I have not broken any existing cases, even the one for
new topics, due to the use of the overload. I think I need to add a
ReadOnly MockDirectory creation method and an implementation of
HasPermission in MockContentStore that matches the overload.

Does this seem reasonable?

John Davidson

On 7/25/07, Craig Andera <[EMAIL PROTECTED]> wrote:
>
> Honestly I think that you shouldn't do anything in the web app that relies
> on knowledge of how rules are implemented. I think there should be a method
> on a NamespaceManager and/or on Federation that says, "Hey, can users create
> new topics in this namespace?" It's a fair question, and it would leave the
> decision up to the core stuff where it has to be made anyway.
>
> It might just require a change in the semantics of HasPermission for
> nonexistent topics, or an additional overload.
>

-------------------------------------------------------------------------
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
Flexwiki-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexwiki-users

Reply via email to