Skip to content

Commit

Permalink
Prefer svg to png format and add drawio file for future changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fflorent committed May 3, 2024
1 parent 9a4b2b5 commit 631b09a
Show file tree
Hide file tree
Showing 6 changed files with 244 additions and 2 deletions.
4 changes: 2 additions & 2 deletions documentation/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,15 @@ 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) <!-- Use diagrams.net and import ./images/BDD.drawio to edit this image -->

This inheritance can be changed through the Users management popup in the Contextual Menu for the Workspaces:

![The drop-down list after "Inherit access:" in the workspaces Users Management popup](./images/ws-users-management-popup.png)

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) <!-- Use diagrams.net and import ./images/BDD.drawio to edit this image -->

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`.

Expand Down
Binary file not shown.
4 changes: 4 additions & 0 deletions documentation/images/BDD-doc-inheritance-after-change.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
4 changes: 4 additions & 0 deletions documentation/images/BDD-doc-inheritance-default.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 631b09a

Please sign in to comment.