puter icon indicating copy to clipboard operation
puter copied to clipboard

Implement frontend support for new file manage permission

Open Salazareo opened this issue 1 year ago • 2 comments

Following backend changes in PR #1567, frontend must support the new manage:fs:{file-uuid} permission for file sharing.

Summary of Changes:

  • File owners can now grant a manage:fs:{file-uuid} permission, which allows another user full access to the file and enables them to share the file with others (as write or read).
  • Users without the manage permission must be restricted from sharing or revoking shares on the file.
  • UI should expose this new permission type for owner files, and disable sharing/revoking options for users lacking manage permission.
  • A manage permission holder cannot revoke another user's manage permission; only the file owner can do this, as owners have implied control over the file.

Frontend Requirements:

  • Update sharing dialog and permissions UI to display and control the new manage permission.
  • Ensure only file owners can revoke manage permissions from other users.
  • Disable sharing/revoke actions for users lacking manage permission.
  • All relevant UI elements and cases should reflect backend permission logic.

Backend reference: PR #1567

Salazareo avatar Sep 30 '25 02:09 Salazareo

Should this be done after PR #1567 is merged?

jelveh avatar Sep 30 '25 02:09 jelveh

For reference, I'm going to implement this and it to #1567, then we can test/merge it all in one go

jelveh avatar Oct 01 '25 02:10 jelveh