Hi, On 27 February 2015 at 08:38, Ian Boston <[email protected]> wrote:
> Hi, > > > On 27 February 2015 at 07:05, Bertrand Delacretaz <[email protected]> > wrote: > >> Hi, >> >> On Thu, Feb 26, 2015 at 2:56 AM, Ian Boston <[email protected]> wrote: >> > ...Tenant tenant = resource.adaptTo(Tenant.class) ... >> >> FWIW this is how I'm doing it in my SLING-4386 prototype, but in that >> case the resource is mapped to a tenant based on a property found in >> the tenant's content subtree, instead of users. > > > Thats a much better way of doing it. > Will the capability be added to the existing AdapterFactory ? > just checking.... do you look for the tenant property closest to the root to prevent someone with write permissions inside a tenant changing the tenant ID for some users or some content ? Best Regards Ian > > Best Regards > Ian > > >> >> -Bertrand >> > >
