boolean isAuthorized = false;
/*
* Get acl and check security.
*/
AccessControlList acl = data.getACL();
//if (acl == null || ! acl.hasPermission("default_view", "group"))
if (acl == null || ! acl.hasRole("turbine_root"))
{
isAuthorized = false;
}
//else if( acl.hasPermission("default_view", "group"))
else if(acl.hasRole("turbine_root"))
{
isAuthorized = true;
}
return isAuthorized;