Re: [sabredav] Re: Per user access

2014-11-18 Thread Evert Pot
On Tuesday, November 18, 2014 7:40:52 AM UTC-5, Laoneo wrote: Looks like the way to go. How can I obtain the logged in user in SabreDAV? In your server.php you have an authentication plugin. (often $authPlugin). This plugin has a getCurrentUser() method. What I usually recommend to people

Re: [sabredav] Re: Per user access

2014-11-13 Thread Allon Moritz
Just curious, for example owncloud does the same. Why should it be a bad idea. If you have an application with many users then it is valid to have a space for every user, or not. Will give the virtual filesystem a try, Just thought it would be easier to have an own folder for every user. Probably

Re: [sabredav] Re: Per user access

2014-11-13 Thread Evert Pot
Hi, On Thursday, November 13, 2014 3:32:12 AM UTC-5, Laoneo wrote: Just curious, for example owncloud does the same. Why should it be a bad idea. If you have an application with many users then it is valid to have a space for every user, or not. Will give the virtual filesystem a try, Just

[sabredav] Re: Per user access

2014-11-12 Thread Evert Pot
Hi Laoneo, Generally we consider this a bad idea. It goes against the spirit of HTTP and sabredav. However, your starting point is to create a virtual filesystem: http://sabre.io/dav/virtual-filesystems/ Read that first and experiment with your own custom collection. Once you have a firm