Check the user rights and redirect if the user does not have rights for the page.
pageaccess( string $rights [, bool $debug ] ) : void
$rights (string) (Required) Rights you want to check for the administrator.
$debug (bool) (Optional) For debugging purposes. Default value: false
No value is returned.
// Paste the code after maincore.php
pageaccess('I');
// If you do not have access to the Infusion administration, you will be redirected to the index