codegasms / flux

A complete file management utility
https://flux.codegasms.com
4 stars 2 forks source link

Simplified share & revoke access api endpoints for file sharing #57

Closed aahnik closed 5 months ago

aahnik commented 5 months ago

To make the frontend do lesser api calls, and make the flow simplified, the spaces/share endpoint is to be simplified

fields for shareAccess endpoint

for revokeAccess endpoint

access can be viewer/editor/manager/owner

the backend will verify whether current user has enough permission to share access

for example:

for now transfer ownership is not supported, because the file would start occupying storage space of new owner. todo in future.