[英]MoinMoin acl on a page doesnt work
In wikiconfig.py
I have 在
wikiconfig.py
我有
acl_rights_before = u"Adminuser:read,write,delete,revert,admin +ReaderGroup:read +EditorGroup:read,write,delete,revert"
acl_rights_default = u"All:"
But I have some pages, that I want to make unreadable to anyone expect EditorGroup. 但是我有一些页面,我想让任何希望使用EditorGroup的人都无法阅读。 I was trying to make that with on page acl line :
我试图用页面acl行来做到这一点:
#acl EditorGroup:read,write,revert,delete ReaderGroup:
but users, who are members of ReaderGroup still can access that page.... Can anyone tell me, where I am doing a mistake? 但是作为ReaderGroup成员的用户仍然可以访问该页面。...有人可以告诉我,我在哪里做错了吗? Thanks.
谢谢。
The rights defined in acl_rights_before
cannot be overwritten, thus whoever has rights defined in acl_rights_before
will have it regardless of what is defined later. 在
acl_rights_before
定义的权限无法覆盖,因此,无论在以后定义什么,在acl_rights_before
定义的权限的人都将拥有该权限。
If you want to be able to overwrite the rights for some group or user in the #acl
-directive of the page, the right has to be defined in acl_rights_default
. 如果您希望能够覆盖页面
#acl
指令中某些组或用户的权限,则必须在acl_rights_default
定义权限。
Moving the rights to acl_rights_default
in wikiconfig.py 将权限移至wikiconfig.py中的
acl_rights_default
acl_rights_default = u"Adminuser:read,write,delete,revert,admin ReaderGroup:read EditorGroup:read,write,delete,revert All:"
and on the page remove all rights for the ReaderGroup and keep the rest "Default": 并在页面上删除ReaderGroup的所有权利,并保留其余的“默认”:
#acl ReaderGroup: Default
if you have other groups it seems easier to me to just define the rights for the EditorGroup explicitly on the page (all others, except acl_rights_before will be overwritten) 如果您还有其他组,对我来说,只在页面上显式定义EditorGroup的权限似乎比较容易(除acl_rights_before外的所有其他权限都将被覆盖)
#acl EditorGroup:read,write,delete,revert
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.