JStans12 / stuff_box

0 stars 1 forks source link

Js add shared to folders #72

Closed JStans12 closed 7 years ago

JStans12 commented 7 years ago

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.

MDes41 commented 7 years ago

Looks good! Will work on the css to bring it into the dashboard