user has methods to retrieve folders that they own and folders that are shared with them. the view can call current_user.shared_with_me to see a list of shared folders. They can then have access to all folders and files that branch off of that folder. (so if you share your root folder, you essentially share everything you have). I'm pretty sure this makes sense from a design standpoint. if not, we can figure out a solution.
also added USER.my_folders to retrieve only folders that a user owns.
users now have a shared folder method
joey.share_folder(matt, FOLDER)
user has methods to retrieve folders that they own and folders that are shared with them. the view can call
current_user.shared_with_me
to see a list of shared folders. They can then have access to all folders and files that branch off of that folder. (so if you share your root folder, you essentially share everything you have). I'm pretty sure this makes sense from a design standpoint. if not, we can figure out a solution.also added
USER.my_folders
to retrieve only folders that a user owns.