Looks like the way to go. How can I obtain the logged in user in SabreDAV? On Thu, Nov 13, 2014 at 5:55 PM, Evert Pot <[email protected]> wrote:
> 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 >> thought it would be easier to have an own folder for every user. Probably >> will come up with more questions soon.... :-) >> > > The 'design problem' I have with how you proposed to do it, is that I > don't think the structure of your webservice (or WebDAV service in this > case) should change depending on who is logged in. > > A good way to do this, is to indeed use per-user folders, so you get a > structure like: > > dav.example.org/user1/ > dav.example.org/user2/ > > And when user1 tries to access user2's files, they should just a 403 error. > > The easiest way to do this, is to use the ACL system. But you are still > definitely required to figure out the 'virtual filesystem' thing. > > Evert > > > -- > You received this message because you are subscribed to the Google Groups > "SabreDAV Discussion" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sabredav-discuss/197e5153-242f-43b7-8324-7b826b292bf4%40googlegroups.com > <https://groups.google.com/d/msgid/sabredav-discuss/197e5153-242f-43b7-8324-7b826b292bf4%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "SabreDAV Discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sabredav-discuss/CAAbUApbjU7iyhgtfpQYgtdk7iYj1T2Cu0W7jWyNdRYsx9TU8jw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
