Changing the user that performs an action

When writing business logic code, you may have to perform some actions with a different security context. A typical case is performing an action with the rights of the Administrator, who bypasses security checks.

This recipe will show you how to let normal users modify the phone number of a company by using sudo().

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset