[Moin-user] acl configuration

Michael P. Soulier michael_soulier at mitel.com
Fri Sep 24 12:02:07 EDT 2004

On 24/09/04 Michael P. Soulier did say:

> I've found the problem. I have this on my moin_config.py to force users
> to create an account and login before editing pages. 
> class SecurityPolicy(Permissions):
>     def edit(self, pagename, **kw):
>        return self.request.user.valid
> This is incompatible with the acls. As soon as I comment this out, the
> page that I should have only read access to becomes immutable. 
> Suggestions to get both working? The above code is straight from the
> FAQ.

Interesting. The code hack in the FAQ wasn't even required. This ACL
configuration accomplishes the same thing, while keeping in-page ACLs

acl_enabled = 1
acl_rights_default = 'Known:read,write,delete,revert All:read'


Michael P. Soulier <michael_soulier at mitel.com>, 613-592-2122 x2522
6000/6010/60* Development, Mitel Networks Corporation
"...the word HACK is used as a verb to indicate a massive amount of nerd-like
effort." -Harley Hahn, A Student's Guide to Unix

More information about the Moin-user mailing list