Wasp/Swarm: change LoginContext in Session

2008-06-11 Thread Andrea Jahn
Hi, in our application the user's rights depend on the location (Munich, Berlin,...). There's a drop down choice, where the user can change the location, on which he wants to work. So, when he changes the location, also the principals (permissions) have to be changed. How can I remove the old

Re: Wasp/Swarm: change LoginContext in Session

2008-06-11 Thread Maurice Marrink
Didn't we use custom actions for those locations? A user could have global or location permissions, right? In that case the permissions would be the same for each location. The only difference would be in the fact that the user has or does not have a location. which is checked by your

Re: Wasp/Swarm: change LoginContext in Session

2008-06-11 Thread Andrea Jahn
Yes, I have different permissions for the locations. The user can have different roles for each location and each role has different permissions. Now I made a dummy LoginContext class and for changing the LoginContext I first add the dummy LoginContext, then delete the old LoginContext, then add

Re: Wasp/Swarm: change LoginContext in Session

2008-06-11 Thread Maurice Marrink
Why the dummy? it should work with 2 contexts just as well. Maurice On Wed, Jun 11, 2008 at 4:11 PM, Andrea Jahn [EMAIL PROTECTED] wrote: Yes, I have different permissions for the locations. The user can have different roles for each location and each role has different permissions. Now I