Utility class to help check for proper authorization when using
template screens. Sample usages:
TemplateSecurityCheck secCheck = new TemplateSecurityCheck( data );
secCheck.setMessage( "Sorry, you do not have permission to " +
"access this area." );
secCheck.setFailTemplate("login.wm");
if ( !secCheck.hasRole("ADMIN") )
return;
Does the User have this permission?
Parameters: permission - The permission to be checked. Whether the user has the permission. exception: Exception - Trouble validating.