Documentation
checkApp
usage
$security->checkApp( string apps )
parameters
apps: comma separated list of the apps (user must have access to at least one of these apps)
returns
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.
examples
include_once("../Kernel/common/security.class.php");
try{
$security = new SusheeSecurity();
$security->checkApp('officity/lib,officity/directory');
}catch( SusheeSecurityException $E ){
exit( 'Warning : '.$E->getMessage() );
}