jsDAV icon indicating copy to clipboard operation
jsDAV copied to clipboard

Limit access to user directories?

Open tarangill opened this issue 13 years ago • 2 comments

Is there a way to limit each user's access to their own directory?

tarangill avatar Dec 05 '11 11:12 tarangill

Look at these files https://github.com/mikedeboer/jsDAV/tree/master/lib/DAV/plugins/auth

I haven't gotten that far yet but I want to say that there is a method called to authenticate every action before it is performed. You will most likely need to fork jsDAV and create another "auth plugin". You can then add the git path as a dependency in your apps package.json file.

respectTheCode avatar Dec 05 '11 15:12 respectTheCode

Just ran into this same issue.

I got the basic auth working, but now how do I get the current user from file/directory node so I can filter out the directory/file listings?

prabirshrestha avatar Feb 13 '14 06:02 prabirshrestha