if(userId.isGuest()) {
return false;
}
MetaProjectManager mpm = MetaProjectManager.getManager();
MetaProject metaProject = mpm.getMetaProject();
User user = metaProject.getUser(userId.getUserName());
if(user == null) {
return false;
}
for(Group group : user.getGroups()) {
if(OntologyShareAccessConstants.ADMIN_GROUP.equals(group.getName())) {
return true;
}
}
return false;