Kaynağa Gözat

Add role documentation

Guénaël Muller 5 yıl önce
ebeveyn
işleme
aeab83cb19
2 değiştirilmiş dosya ile 57 ekleme ve 0 silme
  1. 7 0
      README.md
  2. 50 0
      doc/roles.md

+ 7 - 0
README.md Dosyayı Görüntüle

@@ -152,6 +152,13 @@ For example, with default config:
152 152
     # launch your favorite web-browser
153 153
     firefox http://localhost:6543/api/v2/doc/
154 154
 
155
+## Roles, profile and access rights
156
+
157
+In Tracim, only some user can access to some informations, this is also true in
158
+Tracim REST API. you can check the [roles documentation](doc/roles.md) to check
159
+what a specific user can do.
160
+
161
+
155 162
 CI
156 163
 ---
157 164
 

+ 50 - 0
doc/roles.md Dosyayı Görüntüle

@@ -0,0 +1,50 @@
1
+# Introduction
2
+
3
+In Tracim, you have 2 system of "roles".
4
+
5
+One is global to whole tracim instance and is called "global profile" (Groups).
6
+The other is workspace related and is called "workspace role".
7
+
8
+## Global profile
9
+
10
+
11
+|                               | Normal User | Managers    | Admin   |
12
+|-------------------------------|-------------|-------------|---------|
13
+| participate to workspaces     |  yes        | yes         | yes     |
14
+| access to tracim apps         |  yes        | yes         | yes     |
15
+|-------------------------------|-------------|-------------|---------|
16
+| create workspace              |  no         | yes         | yes     |
17
+| invite user to tracim         |  no         | yes, if manager of a given workspace         | yes     |
18
+|-------------------------------|-------------|-------------|---------|
19
+| set user global profile rights|  no         | no          | yes     |
20
+| deactivate user               |  no         | no          | yes     |
21
+|-------------------------------|-------------|-------------|---------|
22
+| access to all user data (/users/{user_id} endpoints) |personal-only|personal-only| yes     |
23
+
24
+
25
+## Workspace Roles
26
+
27
+
28
+|                              | Reader | Contributor | Content Manager | Workspace Manager |
29
+|------------------------------|--------|-------------|-----------------|-------------------|
30
+| read content                 |  yes   | yes         | yes             | yes               |
31
+|------------------------------|--------|-------------|-----------------|-------------------|
32
+| create content               |  no    | yes         | yes             | yes               |
33
+| edit content                 |  no    | yes         | yes             | yes               |
34
+| copy content                 |  no    | yes         | yes             | yes               |
35
+| comments content             |  no    | yes         | yes             | yes               |
36
+| update content status        |  no    | yes         | yes             | yes               |
37
+-------------------------------|--------|-------------|-----------------|-------------------|
38
+| move content                 |  no    | no          | yes             | yes               |
39
+| archive content              |  no    | no          | yes             | yes               |
40
+| delete content               |  no    | no          | yes             | yes               |
41
+|------------------------------|--------|-------------|-----------------|-------------------|
42
+| edit workspace               |  no    | no          | no              | yes               |
43
+| invite users (to workspace)  |  no    | no          | no              | yes               |
44
+| set user workspace role      |  no    | no          | no              | yes               |
45
+| revoke users (from workspace)|  no    | no          | no              | yes               |
46
+|------------------------------|--------|-------------|-----------------|-------------------|
47
+| modify comments              |  no    | owner       | owner             | yes             |
48
+| delete comments              |  no    | owner       | owner             | yes             |
49
+ 
50
+