Here is my scenario :
Account beto = new Account();
beto.Name = "beto account";
Account abc = new Account();
abc.Name = "abc account";
authorizationRepository.CreateEntitiesGroup("Executive
Accounts");
authorizationRepository.CreateEntitiesGroup("Manager Accounts");
authorizationRepository.CreateEntitiesGroup("Employee
Accounts");
authorizationRepository.AssociateEntityWith(beto, "Employee
Accounts");
authorizationRepository.AssociateEntityWith(abc, "Manager
Accounts");
session.Flush();
permissionsBuilderService
.Allow("/Account/Edit")
.For(user)
.On("Executive Accounts")
.DefaultLevel()
.Save();
permissionsBuilderService
.Deny("/Account/Edit")
.For(user)
.On("Manager Accounts")
.DefaultLevel()
.Save();
bool isAllowedbeto = authorizationService.IsAllowed(user, beto,
"/Account/Edit"); (Should be true but it comes as false)
bool isAllowedabc = authorizationService.IsAllowed(user, abc,
"/Account/Edit"); (This is correct, it comes as false)
I am not quite able to understand what is wrong with setting permissions. I
think Beto should have access to Account/Edit.
Pl let me know what is incorrect here.
Thanks,
Bhoomi.
--
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.