Limiting functions according to access level [closed]

0

I have form MenuPrincipal and FormLogon , where the latter, after performing login validation queries, calls the Menu and closes. I need to limit some buttons and controls depending on the access level of that user that just logged in, as well as saving their ID to a variable. Is there any way to do this?

    
asked by anonymous 15.05.2018 / 06:31

1 answer

0

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

    
15.05.2018 / 20:03