On Fri, Feb 20, 2009 at 5:18 AM, Linly <[email protected]> wrote: > > I want to write an introduction about BoltWire for my Chinese language > readers, but I want to set a play ground group first. Where I can put > some "ez" plugins on it as a demo showing the ability of BoltWire. > > I meet some situation about security and access auth setting problem. > What I need are: > > 1) Open the "playground" group to visitors (no need to register) > > 2) Protect the {p1} group page which the plugin is installed (no one > can edit the page)
You can put a write permission like this: page: @editor page.*: @guest Notice the "." after the page, that means everything below page not including page. But I would be very hesitant about giving wide open edit access like this... > 3) But allowing visitors use the plugin to create, savedata, > savecontent, and do [(info)] function. > > My problem is how to limit the visitors manually create new pages, but > allow them create by using plugin? If you only want to allow them to write via custom forms do this: page.*: @editor,@key_ezform Then in each form before any command that writes to a page, put [session authkey ezform] That means that form is authorized to write to "page.*" even if the user is not. This should be almost standard procedure for this kind of thing. Note, a form with an info command does not check write permissions, but info permissions, so you would put the auth setting above on site.auth.info, not site.auth.write. Or on both if needed. > 4) How to recover the group everyday (delete the new created pages, > clean the info data)? Possible? You can get some mileage with this plugin: http://www.boltwire.com/index.php?p=solutions.system.reset But it won't delete pages, only reset them. For deleting pages, you might want to look at this script: http://www.boltwire.com/index.php?p=solutions.system.tree Esp if combined with a cron job. More realistically, you will need to have some custom php programming. Cheers, Dan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BoltWire" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/boltwire?hl=en -~----------~----~----~----~------~----~------~--~---
