Documentation
checkModule
usage
$security->checkModule( string modules );
paramètres
modules: comma separated list of the modules the user must have access to in order to pass the test
retourne
throws a SusheeSecurityException if the user is not authorized, with a message indicating which module is forbidden.
Checks the user has access to ALL the modules listed.
It means the user must have a modulekey for all these modules in his keyring.
exemples
include_once("../Kernel/common/security.class.php");
try{
$security = new SusheeSecurity();
$security->checkModule('contact,group');
}catch( SusheeSecurityException $E ){
exit( 'Warning : '.$E->getMessage() );
}