Change user from file menu item
Brought to you by:
mcarniel
Hi,
when I use a change user function in file menu, I see that there are problems with button permission.
I set a export button disabled for my application user and on amministrative one this button is enabled.
If I login in my application with amministrative user and then I use change user function, even if new user is not enablet to export grid, button is enabled.
On the other hand, if i close application and enter with the same user, button is correctly disabled.
I thinks that some permission variable is dirty.
Any Idea?
Thanks in advance.
Anonymous
Well, it depends on how you have set the authorization the first time...
You could check JAllInOne permissions settings in ClientApplet class:
as you can see, authorizations are read from OpenSwing through the callback method
public ApplicationParametersVO getAuthorizations()
so, it is important that what you return in this method is always "freshed".
In JAIO, this method return the content of a class attribute and this attribute is freshed in several points (according to several events):
- within authenticateUser method, when you log on
- inside getApplicationFunctions, in case the language has changed
It seems that you do not have set authorizations in all right points...