diff --git a/documentation/database.md b/documentation/database.md index e59a5c0a..d3631222 100644 --- a/documentation/database.md +++ b/documentation/database.md @@ -248,7 +248,7 @@ Let's imagine that a user is granted the role of *Owner* for the "Org1" organisa The below schema illustrates both the inheritance of between the groups and the state of the database: -![BDD state by default](./images/BDD-doc-inheritance-default.png) +![BDD state by default](./images/BDD-doc-inheritance-default.svg) This inheritance can be changed through the Users management popup in the Contextual Menu for the Workspaces: @@ -256,7 +256,7 @@ This inheritance can be changed through the Users management popup in the Contex If you change the inherit access to "View Only", here is what happens: -![BDD state after inherit access has changed, the `group_groups.group_id` value has changed](./images/BDD-doc-inheritance-after-change.png) +![BDD state after inherit access has changed, the `group_groups.group_id` value has changed](./images/BDD-doc-inheritance-after-change.svg) The Org1 owners now belongs to the "WS1 Viewers" group, and the user despite being *Owner* of "Org1" can only view the workspace WS1 and its documents because s/he only gets the Viewer role for this workspace. Regarding the database, `group_groups` which holds the group inheritance has been updated, so the parent group for `id_org1_owner_grp` is now `id_ws1_viewers_grp`. diff --git a/documentation/images/BDD-doc-inheritance-after-change.png b/documentation/images/BDD-doc-inheritance-after-change.png deleted file mode 100644 index 1a02f86d..00000000 Binary files a/documentation/images/BDD-doc-inheritance-after-change.png and /dev/null differ diff --git a/documentation/images/BDD-doc-inheritance-after-change.svg b/documentation/images/BDD-doc-inheritance-after-change.svg new file mode 100644 index 00000000..0899246a --- /dev/null +++ b/documentation/images/BDD-doc-inheritance-after-change.svg @@ -0,0 +1,4 @@ + + + +
Org1
Workspace1
Some user
group_users
group_id
user_id
id_org1_owner_grp
id_some_user
Org1 Owners
Ws1 Owners
NEW
Ws1 Viewers

group_groups
group_id
subgroup_id
id_ws1_owner_grp
id_ws1_viewers_grp
id_org1_owner_grp
\ No newline at end of file diff --git a/documentation/images/BDD-doc-inheritance-default.png b/documentation/images/BDD-doc-inheritance-default.png deleted file mode 100644 index b766b778..00000000 Binary files a/documentation/images/BDD-doc-inheritance-default.png and /dev/null differ diff --git a/documentation/images/BDD-doc-inheritance-default.svg b/documentation/images/BDD-doc-inheritance-default.svg new file mode 100644 index 00000000..1fc21857 --- /dev/null +++ b/documentation/images/BDD-doc-inheritance-default.svg @@ -0,0 +1,4 @@ + + + +
Org1
Org1
Workspace1
Workspace1
Some user
Some...
group_users
group_id
group_id
user_id
user_id
id_org1_owner_grp
id_org1_owner_grp
id_some_user
id_some_user
group_groups
group_id
group_id
subgroup_id
subgroup_id
id_ws1_owner_grp
id_ws1_owner_grp
id_org1_owner_grp
id_org1_owner_grp
Org1 Owners
Org1 Own...
Ws1 Owners
Ws1 Owne...
\ No newline at end of file diff --git a/documentation/images/BDD.drawio b/documentation/images/BDD.drawio new file mode 100644 index 00000000..7e7fe9aa --- /dev/null +++ b/documentation/images/BDD.drawio @@ -0,0 +1,234 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +