Limiting functions according to access level

Asked

Viewed 41 times

0

I have the form MenuPrincipal and the FormLogon, where the latter, after carrying out the login validation queries, calls the Menu and closes. I need to limit some buttons and controls according to the level of access of this user who just logged in, as well as save his ID in a variable. There’s a way to do it ?

1 answer

0


Yes it is possible, the ideal would be to create a control class for this, but if you prefer the variables, after calling the menu just make a select in the user table bringing the data you need and save itlos in variables, then do an IF by hiding these buttons and controls that you don’t want it to have access to.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.