用户工具

站点工具


dokuwiki:private-namespace

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

dokuwiki:private-namespace [2010/06/02 01:18]
dokuwiki:private-namespace [2010/06/02 01:18] (当前版本)
行 1: 行 1:
 +====== Dokuwiki 设置私人保密命名空间 ======
  
 +
 +===== 启用ACL访问控制系统 =====
 +在Dokuwiki的配置文件 inc/​dokuwiki.php 中作如下ACL设置:
 +<code php>
 +  $conf['​useacl'​] ​      = 1;        // this enables the ACL feature
 +  $conf['​superuser'​] ​   = '​@admin';​ // admin group is superuser
 +</​code>​
 +
 +===== 设置命名空间访问控制 =====
 +在Dokuwiki的ACL配置文件 inc/​acl.auth.php 作如下设置:
 +<​file>​
 +*                  @ALL     ​1 ​     #1 grant all users read access to the wiki
 +*                  @users ​  ​2 ​     #2 grant logged in users edit access to existing pages throughout the wiki
 +*                  @staff ​  ​16 ​    #3 allow members of the staff group full access ​ to the wiki
 +private:​* ​         @ALL     ​0 ​     #4 prevent access to everyone, including logged in users
 +private:​* ​         @staff ​  ​16 ​    #5 counter rule #4 above, to allow staff members access to this namespace
 +private:​bobspage ​  ​bob ​     16     #6 allow bob to access his page
 +</​file>​
dokuwiki/private-namespace.txt · 最后更改: 2010/06/02 01:18 (外部编辑)