Description

I have acl_rights_before specified in wikiconfig.py and if a group does not have admin rights, page acl overrides it!

For example, my entries in wikiconfig.py are:

acl_rights_before = u"RichardWiseman:read,write,delete,revert,admin AdminGroup:read,write,revert,delete,admin EditGroup:read,write,revert,delete"
acl_rights_after = acl_rights_default = u"ReadGroup:read All:none"
superuser = [u"RichardWiseman"]

I have made the front page of the Wiki and one or two others readable to all, but the majority is only readable to people in the ReadGroup, EditGroup and AdminGroup. The readable-to-all pages contain the following line:

#acl All:read

Members of the AdminGroup are able to edit these pages; members of EditGroup are not able to.

Removing the page-level ACL allows EditGroup members to edit the page.

Steps to reproduce

  1. Set up ACL so that EditGroup (for example) has read,write,revert,delete permissions specified in acl_rights_before and in acl_rights_after include All:none.

  2. Add #acl All:read to page XYZ to make it readable to all. (This functionality works fine.)

  3. Log in as a member of EditGroup.

  4. Go to page XYZ. It is labelled as immutable. It should be editable because EditGroup is given permission in acl_rights_before.

  5. Log in as an administrator.
  6. Go to page XYZ. It is editable, as it should be.

  7. Edit the page and remove the #acl line from page XYZ.

  8. Log in as a member of EditGroup.

  9. Go to page XYZ. It is editable, as it should be.

Example

Example is as described. I've got no publicly visible Wiki, and a screen shot won't show the problem.

Component selection

Details

MoinMoin Version

1.9

OS and Version

Windows Server 2003

Python Version

2.6.4

Server Setup

Apache 2.2 + WSGI

Server Details

Apache version 2.2.14

Language you are using the wiki in (set in the browser/UserPreferences)

English

Workaround

None.

Discussion

RW: Thanks for looking at this for me.

none is no valid right

Please check by SystemAdmin do user browser if you have members in EditGroup.

Please show your page_group_regex.

If this was an upgrade do you have cleaned while the server was offline by maint cleancache all cache files of moin?

I have no windows server handy but I tried to rebuild the setup on a linux system. I can't reproduce it on that linux box. -- ReimarBauer. May be provide a instance of the moin data dir. 2010-01-20 21:15:56


Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/PageAclOverridesAclRightsBefore (last edited 2010-01-21 12:30:13 by RichardWiseman)