Skip to content

feat(conversions): [OCISDEV-807] Add SpaceEditorWithoutVersionsWithoutTrashbin role#576

Merged
kobergj merged 2 commits intomainfrom
feat/OCISDEV-807-port-to-main
Apr 23, 2026
Merged

feat(conversions): [OCISDEV-807] Add SpaceEditorWithoutVersionsWithoutTrashbin role#576
kobergj merged 2 commits intomainfrom
feat/OCISDEV-807-port-to-main

Conversation

@kobergj
Copy link
Copy Markdown
Collaborator

@kobergj kobergj commented Apr 23, 2026

Summary

  • Ports #575 from stable-8.0 to main
  • Adds NewSpaceEditorWithoutVersionsWithoutTrashbinRole constructor and RoleSpaceEditorWithoutVersionsWithoutTrashbin constant
  • Refactors existing SpaceEditor role variants to compose from the new base role

Test plan

  • Unit tests added for NewSpaceEditorWithoutVersionsWithoutTrashbinRole covering permissions present and absent
  • Existing SpaceEditor role tests still pass

🤖 Generated with Claude Code

kobergj added 2 commits April 23, 2026 11:15
…tTrashbin role

Adds the NewSpaceEditorWithoutVersionsWithoutTrashbinRole constructor and
RoleSpaceEditorWithoutVersionsWithoutTrashbin constant. This role provides
full editor permissions (create, upload, download, edit, move, delete) on
a space without access to file versions or the trashbin.
…ase role

SpaceEditorWithoutVersionsWithoutTrashbin is now the base role. The other
three SpaceEditor variants compose from it by adding the relevant permissions:
- SpaceEditorWithoutVersions adds ListRecycle + RestoreRecycleItem
- SpaceEditorWithoutTrashbin adds ListFileVersions + RestoreFileVersion
- SpaceEditor adds all four (via SpaceEditorWithoutVersions)

Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
@kobergj kobergj merged commit a6b02a3 into main Apr 23, 2026
13 checks passed
@kobergj kobergj deleted the feat/OCISDEV-807-port-to-main branch April 23, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants