Documentation
checkApp
usage
$security->checkApp( string apps )
paramètres
apps: comma separated list of the apps (user must have access to at least one of these apps)
retourne
throws a SusheeSecurityException if the user is not authorized.
Checks the user has access to at least one of the apps listed.
It means that for at least one application the user must have an application key for this application in its keyring.
exemples
include_once("../Kernel/common/security.class.php");
try{
$security = new SusheeSecurity();
$security->checkApp('officity/lib,officity/directory');
}catch( SusheeSecurityException $E ){
exit( 'Warning : '.$E->getMessage() );
}