zadjii / nebula

The personal private cloud platform
http://starmap.io
MIT License
2 stars 1 forks source link

ListFilesResponse should include user's permissions #47

Closed zadjii closed 6 years ago

zadjii commented 6 years ago

I guess the StatResponse should be the one to hold that data, but whatever.

The ListFilesResponse payload should include the permissions for the client for that file.

We wouldn't just want to call get_permissions on each of the files dmbly though, we should probably get_permissions on the dir that's getting LS'ed, then have a nonrecursive_get_permissions for each child, that we OR with the permissions on the target dir.

zadjii commented 6 years ago

Hey I moved this up and actually did this as a part of the alpha.