puter
puter copied to clipboard
Implement frontend support for new file manage permission
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
Should this be done after PR #1567 is merged?
For reference, I'm going to implement this and it to #1567, then we can test/merge it all in one go