Repository navigation
Tell whether a modification reference is editable by its reader - #236
Conversation
A modification reference points at a shared modification, which is also an element of the directory: the permission the user holds on it decides what the front-end lets them do with that reference and its content. The permission is read only, never persisted and never read back by a server. It is left null when it was not resolved, which a client must not read as a denial. Signed-off-by: Florent MILLOT <75525996+flomillot@users.noreply.github.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Signed-off-by: Florent MILLOT <75525996+flomillot@users.noreply.github.com>
An element the user holds no permission on is answered with no permission at all, which a client must refuse just as it refuses one it could not resolve: the two cases never parted ways, and the value distinguishing them was read by no one. The enum is back to the three the directory knows. Signed-off-by: Florent MILLOT <75525996+flomillot@users.noreply.github.com>
| | `referencedId` | `UUID` | UUID of the referenced modification | | ||
| | `referenceType` | `Type` | `BASIC` or `DIRECTORY` | | ||
| | `referencedInfos` | `ModificationInfos` | Resolved DTO representation | | ||
| | `permission` | `PermissionType` | `READ`, `WRITE` or `MANAGE` : the right the user holds on a shared modification | |
There was a problem hiding this comment.
sounds weired (the right... holds on ...)
maybe => the user's permission level for a shared modification
There was a problem hiding this comment.
I replaced by the user's permission level on the referenced modification If it's okay.
Signed-off-by: Florent MILLOT <75525996+flomillot@users.noreply.github.com>
Co-authored-by: etiennehomer <etiennehomer@gmail.com>
…sion held The permission levels stay between servers: a client only needs to know whether it may write. Signed-off-by: Florent MILLOT <75525996+flomillot@users.noreply.github.com>
…nce' into feat/expose-permission-on-reference
|



A modification reference now tells whether its reader may write into the shared modification it points at.
The flag is left out when it could not be resolved, which denies the write just the same.
Consumed by gridsuite/network-modification-server.