Following on Oscar's idea, here's an article from Oren Eini (Ayende) where he sets up layers of repository decorators. One of them is a security decorator.
http://msdn.microsoft.com/en-us/library/aa973811.aspx Might be of some use to you. <http://msdn.microsoft.com/en-us/library/aa973811.aspx>Jason On Tue, Sep 8, 2009 at 12:26 AM, Oskar Berggren <[email protected]>wrote: > > In one project I worked on we had a contexual user, and then the > repository methods were written to take this into account. > > /Oskar > > > 2009/9/7 Ricardo Peres <[email protected]>: > > > > Hmm, never used Rhino * products, so can't tell, but possibly yes. > > > > > > On Sep 7, 7:16 pm, Tuna Toksoz <[email protected]> wrote: > >> rhino security kind fo thing? > >> > >> Tuna Toksöz > >> Eternal sunshine of the open source mind. > >> > >> > http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitter.com/tehlike > >> > >> > >> > >> On Mon, Sep 7, 2009 at 2:15 PM, Ricardo Peres <[email protected]> > wrote: > >> > >> > If necessary, I can use filters, but I was looking for something on > >> > the NHibernate pipeline that would let me inject custom criterias... > >> > Does this exist? > >> > >> > On Sep 7, 7:12 pm, Tuna Toksoz <[email protected]> wrote: > >> > > filters maybe? > >> > >> > > Tuna Toksöz > >> > > Eternal sunshine of the open source mind. > >> > >> >http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitt. > .. > >> > >> > > On Mon, Sep 7, 2009 at 2:06 PM, Ricardo Peres <[email protected]> > wrote: > >> > >> > > > Hello, > >> > >> > > > What would be the best way to implement restriction of data for a > >> > > > given user? > >> > > > For example, let's say I have a table which connects users with > some > >> > > > products; what I want is, when I fetch products, I want to see > only > >> > > > those that I have access to. > >> > >> > > > Any ideas? > >> > >> > > > Thanks, > >> > >> > > > RP > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
