Helpers

Admin authentication

This will authenticate the admin, if not logged in, it will redirect to the login page-

_auth();

Checking user Roles

Check user has access to specific module- 

if(!has_access($user->roleid,'customers','edit')){
// User does not have permission to edit customers
}
By continuing to use this site you consent to the use of cookies in accordance with our Cookie policy. close notification