Ok, can some1 explain to me what is the purpose to have groups and subgroups? After all there is no real inheritance. I just do not get the point of creating groups and subgroups. What is the idea there?
On May 20, 9:38 am, Ayende Rahien <[email protected]> wrote: > Pretty much. > You can try to see what happens if you change the groups to be idbag, > uncached, it might help > > > > On Thu, May 20, 2010 at 7:15 AM, mynkow <[email protected]> wrote: > > So, this is by design I think... > > > On May 18, 3:14 pm, mynkow <[email protected]> wrote: > > > It is commited. The database also looks good with the test data. > > > > On May 18, 2:00 am, Ayende Rahien <[email protected]> wrote: > > > > > My spider sense tells me that if you need to commit the transaction > > > > > On Mon, May 17, 2010 at 11:55 PM, mynkow <[email protected]> wrote: > > > > > Hi, I just executed one test and it failed. > > > > > > string modRoot = "Moderator"; > > > > > string modA = "Fmi"; > > > > > string modB = "Hystory"; > > > > > > securityRepos = new > > > > > SecurityRepository( UnitOfWork.CurrentSession ); > > > > > UserEntity user = userRepos.Get( 111111 ); > > > > > > securityRepos.CreateGroup( modRoot ); // > > > > > _authorizationRepos.CreateUsersGroup( group); > > > > > securityRepos.CreateSubGroup( modRoot, modA ); // > > > > > _authorizationRepos.CreateChildUserGroupOf( parentGroup, > > > > > newChildGroup ); > > > > > securityRepos.CreateSubGroup( modA, modB ); > > > > > > securityRepos.AllowOperationForGroup( operation, > > > > > modRoot ); // > > > > > _permissionBuilderService.Allow( operation ).For( group ); > > > > > > securityRepos.AddUserToGroup( user, modA ); // > > > > > _authorizationRepos.AssociateUserWith( user, group ); > > > > > > // Why this pass? This should not pass because the > > > > > user is not a member of ModRoot. > > > > > Assert.IsTrue( securityRepos.IsUserAllowed( user, > > > > > operation, modRoot ), "ModRoot" ); > > > > > > // Why this NOT pass? This should pass because the > > > > > user is a member of ModA group. > > > > > Assert.IsTrue( securityRepos.IsUserAllowed( user, > > > > > operation, modA ), "ModA" ); > > > > > > // For the next situation, later... > > > > > Assert.IsFalse( securityRepos.IsUserAllowed( user, > > > > > operation, modB ), "ModB" ); > > > > > > -- > > > > > 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%[email protected]> > > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > > > > > > . > > > > > 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%[email protected]> > > . > > > > For more options, visit this group athttp:// > > 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%[email protected]> > > . > > > For more options, visit this group athttp:// > > 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%[email protected]> > > . > > 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 > athttp://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.
