Michael Brickenstein
unread,Sep 27, 2010, 8:40:31 AM9/27/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rum-discuss
Hi!
This message only affects users with a custom policy.
I made the root page of rum ("/") support the rum policy.
Whenever a user accesses it the policy is checked.
It makes sense in applications that users cannot see it
while they can access parts of your CRUD app.
E.g. one of my apps displays information about active events on a
customized
root page (just overloaded home.html),
which I protect against unwanted access.
So if you are using your own policy and would like to restore
the old behaviour (allow / for anyone),
add the following lines to your app:
from rum.policy import anyone
from rum import BuiltinResource
policy.register(anyone, obj=BuiltinResource, action='show')
If you would like to protect this page too (if it is not already
protected
enough by a mounting app), just replace the predicate anyone by
an appropriate predicate.
Cheers,
Michael