New Message: Re: Manila 9.5 preferences broken?

webmaster at userland.com webmaster at userland.com
Tue Oct 4 03:21:39 CDT 2005


A new message was posted:

Address: http://manila.userland.com/discuss/msgReader$1365

By: Jake Savin (jake at userland.com)

Glad to hear that you're successfully updated. Hopefully tracking down your patches won't be too difficult. If you care to share them, we can evaluate whether they might be useful in general, and with your OK, release along with 9.6. We can't make any promises about inclusion, but I thought it would be worth asking.

/... Now all I have to do is figure out how to make a site accessible only to existing members without adding them all to the editors list. .../

There's a new callback coming in 9.6 that will help with this. In manilaSuite.editors.restrictSiteToEditors, we've added a few lines of code to call callbacks at config.manila.callbacks.editorsOnlyTests.

If any of the scripts in that table return false, meaning 'don't restrict', then the page is allowed to be served. Your callback script can check membership and logged-in status just like any other script called while rendering a page.

Errors are ignored, and non-false or non-boolean values are also ignored. Addresses will be followed. (We chose false because empty scripts return true by default, and it was better in this case to not accidentally let requests through, on the off chance that a script was in the process of being added by hand.)

If you need this functionality now, you might consider doing a little testing with 9.6. It's relatively stable, and easy to revert by reverting your manila.root, mainResponder.root and prefs.root. I'm pretty sure you already have backups. ;-)

All changes so far in Frontier.root are common between 9.5 and 9.6.

Hope this helps,

-Jake

This is a Manila site... http://manila.userland.com/.




More information about the Manila-Users mailing list