BV-BRC / Workspace

MIT License
1 stars 9 forks source link

shared folders #6

Open nconrad opened 9 years ago

nconrad commented 9 years ago

In the revised API LIST method, it would be extremely helpful to have an option to return shared permissions (if any) on folders. This is how I’d display shared folders when listing folders in the UI.

cshenry commented 9 years ago

So in the spec right now, I return user permission and global permission for all objects.

Do you want more than this? Like full list of people with rights to view folder? Seems like only owner should be able to see that maybe. But I could do it.

Sent from my iPhone

On Dec 13, 2014, at 1:40 PM, nconrad notifications@github.com wrote:

In the revised API LIST method, it would be extremely helpful to have an option to return permissions (if any) on folders. This is how I’d display shared folders when listing folders in the UI.

— Reply to this email directly or view it on GitHub.

nconrad commented 9 years ago

Yes, I need one more thing. Under the "my data" view, it would be good to know if folder has been shared with anybody else so that it can be styled as "shared". So, I think all I need is bool that says the folder is shared. Otherwise, I'd need to call get_permissions for every folder in the view.

nconrad commented 9 years ago

Better yet would be a list of users and their permissions for each folder.

[{id: 'nconrad', permission: 'edit'}, ... , {id: 'someuser', permission: 'read'}]