jerschmidt14
4 months ago

Security in controller

Posted 4 months ago by jerschmidt14

I have noticed that each controller has a construct method. I have separated my code functionality into individual controllers (e.g. run admin functionality, run query functionality). i would like to restrict access to the controllers for each role of the user. i can easily check to see if the user is part of the roll via a db call. can i do the check in the construct of the controller, or is there a better place to do this?

Please sign in or create an account to participate in this conversation.