Setting user rights in DokuWiki: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Text replacement - "http://wiki.splitbrain.org/" to "https://www.dokuwiki.org/") |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<< [[DokuWiki]][ | << [[DokuWiki]][https://www.dokuwiki.org/] | ||
{{Wiki version| wiki_engine=DokuWiki | version=2006-03-09 }} | {{Wiki version| wiki_engine=DokuWiki | version=2006-03-09 }} | ||
* enable the [ | * enable the [https://www.dokuwiki.org/wiki%3Aacl Access Control](ACL) of DokuWiki | ||
設定權限控制清單(ACL) | |||
== | == 狀況1: 有登錄的使用者才能編輯頁面 == | ||
設定權限於 Namespace * | 設定權限於 Namespace * | ||
* 群組 ALL: 具備讀取權限 | * 群組 ALL: 具備讀取權限 | ||
* 群組 user: 具備讀取權限 編輯頁面 新增頁面 上傳圖檔 等權限 | * 群組 user(註冊的使用者): 具備讀取權限 編輯頁面 新增頁面 上傳圖檔 等權限 | ||
file: conf/ acl.auth.php | file: conf/ acl.auth.php | ||
<pre> | <pre> | ||
* @ALL 1 | * @ALL 1 | ||
* @user | * @user 8 | ||
</pre> | </pre> | ||
[[Category: | |||
== 狀況2: 有登錄的特定群組使用者才能編輯頁面 == | |||
設定權限於 Namespace * | |||
* 群組 ALL: 僅能讀取首頁 | |||
* 群組 user: 僅能讀取首頁 | |||
* 群組 group_a:具備讀取權限 編輯頁面 新增頁面 上傳圖檔 等權限 | |||
file: conf/ acl.auth.php | |||
<pre> | |||
start @ALL 1 | |||
* @ALL 0 | |||
* @user 0 | |||
* @group_a 8 | |||
</pre> | |||
== 狀況3: 有登錄的特定群組使用者才能編輯該群組所屬頁面 == | |||
設定權限於 Namespace * | |||
* 群組 ALL: 僅能讀取首頁 | |||
* 群組 user: 能讀取所有頁面 | |||
* 群組 group_a:具備在namespace_a下所有頁面的讀取 編輯頁面 新增頁面 上傳圖檔 等權限 | |||
file: conf/ acl.auth.php | |||
<pre> | |||
start @ALL 1 | |||
* @ALL 0 | |||
* @user 1 | |||
namespace_a:* @group_a 8 | |||
</pre> | |||
[[Category:Wiki]] | |||
Latest revision as of 23:32, 19 February 2022
| DokuWiki | v.2006-03-09+ |
- enable the Access Control(ACL) of DokuWiki
設定權限控制清單(ACL)
狀況1: 有登錄的使用者才能編輯頁面[edit]
設定權限於 Namespace *
- 群組 ALL: 具備讀取權限
- 群組 user(註冊的使用者): 具備讀取權限 編輯頁面 新增頁面 上傳圖檔 等權限
file: conf/ acl.auth.php
* @ALL 1 * @user 8
狀況2: 有登錄的特定群組使用者才能編輯頁面[edit]
設定權限於 Namespace *
- 群組 ALL: 僅能讀取首頁
- 群組 user: 僅能讀取首頁
- 群組 group_a:具備讀取權限 編輯頁面 新增頁面 上傳圖檔 等權限
file: conf/ acl.auth.php
start @ALL 1 * @ALL 0 * @user 0 * @group_a 8
狀況3: 有登錄的特定群組使用者才能編輯該群組所屬頁面[edit]
設定權限於 Namespace *
- 群組 ALL: 僅能讀取首頁
- 群組 user: 能讀取所有頁面
- 群組 group_a:具備在namespace_a下所有頁面的讀取 編輯頁面 新增頁面 上傳圖檔 等權限
file: conf/ acl.auth.php
start @ALL 1 * @ALL 0 * @user 1 namespace_a:* @group_a 8