Login to multi system based on privileges form menu item

I made a system that has multi user login , And I have some users has multi privileges to login more than one user login control.
So, Instead of current user logouts user login control and login a second user login control, I put menu items for each user login control, But the second one asked this user to type his username and password.
What i need is=> if this current user has not privileges the menu item is hidden, or it displays and log in directly without asking username and password to login the second user login control.

Also in the second user login control, in onApplicationInit you can test if the user as privileges and bypass the login process

1 Like

Thank you very much, I`ll try God willing tomorrow.
you said: “Also in the second user login control, in onApplicationInit you can test if the user as privileges and bypass the login process”
please can you help me insteps , How i can do that.

Thanks alot , It solved and work correctly.
:heavy_check_mark: