Thank you for your help Nathan.  I have one more question and this is
just so I can understand the code it self.  When in accident I ran
this code twice
_authorizationRepository.AssociateEntityWith(target,ECVH.Name+" EG
"+ECVH.Id);

I noticed that it still did not add the EntityReferenceId to GroupId
twice.  I tried to track down where it was issuing a query in the code
to check if the EntityReferenceId to GroupId already existed but all i
found was this: entitiesGroup.Entities.Add(reference); under
AssociateEntityWith<TEntity> method. And no check.

How is it checking to see if the association already exist?

Thanks once again.

On May 26, 5:21 pm, Nathan Stott <[email protected]> wrote:
> I have implemented it, yes.
>
> No I have not run into any issues.
>
> In my current app, each user has an entity group for entities that the user
> owns and the user entity is itself a member of this entity group.  Managers
> can then be assigned over certain users by giving them access to the users
> entity group.
>
> I have, at times, had user groups that consisted of users I wanted to create
> permissions on so this required those users also be in an entity group.
>  This seemed like an undue burden.  I am not sure how to solve this though,
> and it's not really that bad of a problem.
>
>
>
> On Wed, May 26, 2010 at 6:54 PM, Beto <[email protected]> wrote:
> > Nathan.
>
> > So you have implemented the IEntityInformationExtractor<User> on a
> > User entity? Have you run into any issues and do you have a better
> > idea/design that would make this less ideal?
>
> > On May 26, 4:36 pm, Nathan Stott <[email protected]> wrote:
> > > This is something I've noticed as a slight problem as well.  I really
> > want
> > > to be able to assign users permissions on other users.  Right now I do
> > > exactly what the poster is asking about.  I assign users to EntityGroups
> > and
> > > then I assign UserGroups or Users permissions on those entity groups.  It
> > > works, but seems less than ideal.
>
> > > On Wed, May 26, 2010 at 6:13 PM, Beto <[email protected]> wrote:
> > > > Hi Ayende
>
> > > > Would you be able to secure Users the same way you would secure any
> > > > entity?  That means implementing the UserInformationExtractor:
> > > > IEntityInformationExtractor<User> so I can run this type of method
> > > > query _authorizationService.IsAllowed(user, targetUser, "/User/Edit")?
>
> > > > And is this something that you would recomend
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Rhino Tools Dev" group.
> > > > To post to this group, send email to [email protected].
> > > > To unsubscribe from this group, send email to
> > > > [email protected]<rhino-tools-dev%2Bunsubscribe@
> > > >  googlegroups.com>
> > <rhino-tools-dev%2Bunsubscribe@ googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/rhino-tools-dev?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Rhino Tools Dev" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<rhino-tools-dev%2Bunsubscribe@ 
> > googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/rhino-tools-dev?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" 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/rhino-tools-dev?hl=en.

Reply via email to