Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

[Web & ocis] Make proper use of share permissions instead of roles #10770

Closed

Description

@JammingBen

With Sharing NG, roles and permissions are coming from the server. While there is a predefined set of available permissions, roles are simply a "bucket" of permissions. In the future we even may have custom roles per instance, which makes it impossible to rely on roles.

Therefore Web should switch its focus on permissions and only use/display role information if the server returns a matching role for a given set of permissions.

Userstory

As an organisation I dont want that fileversions are shared, so that informations are not accidentally revealed.

Acceptance criteria

  • Make sure all available permissions are included in GraphSharePermission (https://github.com/owncloud/web/blob/master/packages/web-client/src/helpers/share/types.ts#L4). Check against ocis to verify this.
  • Rename GraphSharePermission to DriveItemPermission
  • Remove all role checks (e.g. share.role.id !== GraphShareRoleIdMap.SpaceManager) in favour of permission checks
  • Remove GraphShareRoleIdMap(?) We might implement something similar for tests though? Now sure...
  • Re-think the hard-coded keys of the spaceRoles property in the SpaceResource interface. These names can break when the server adds new roles or renames existing.
  • Make sure that permissions are being displayed in case a set of permissions doesn't have a matching role coming from the server.
    • How do we display the permissions without cluttering the UI? We probably shouldn't list all permissions coming from the server. @tbsbdr

Activity

  1. added
    Category:Change
    Category:Technical
    and removed
    Category:Change
    on Apr 12, 2024
  2. moved this to Refactor / Technical Debt in Infinite Scale Team Boardon May 24, 2024
  3. moved this from Refactor / Technical Debt to Backlog in Infinite Scale Team Boardon Aug 14, 2024
  4. changed the title [-][Sharing NG] Make proper use of share permissions instead of roles[/-] [+][Web & ocis] Make proper use of share permissions instead of roles[/+] on Aug 14, 2024
  5. moved this from Backlog to In progress in Infinite Scale Team Boardon Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Category:Technical

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions