private boolean hasPermission(IPerson person, String permission, String target) {
EntityIdentifier ei = person.getEntityIdentifier();
IAuthorizationPrincipal ap = AuthorizationService.instance().newPrincipal(ei.getKey(), ei.getType());
return ap.hasPermission(IPermission.PORTAL_GROUPS, permission, target);
}
<BUG>private IPersonAttributesGroupDefinition getPagsGroupDefByName(String name) {
</BUG>
Set<IPersonAttributesGroupDefinition> pagsGroups = pagsGroupDefDao.getPersonAttributesGroupDefinitionByName(name);
if (pagsGroups.size() > 1) {
logger.error("More than one PAGS group with name {} found.", name);

private boolean hasPermission(IPerson person, String permission, String target) {
EntityIdentifier ei = person.getEntityIdentifier();
IAuthorizationPrincipal ap = AuthorizationService.instance().newPrincipal(ei.getKey(), ei.getType());
return ap.hasPermission(IPermission.PORTAL_GROUPS, permission, target);
}
public IPersonAttributesGroupDefinition getPagsGroupDefByName(String name) {
Set<IPersonAttributesGroupDefinition> pagsGroups = pagsGroupDefDao.getPersonAttributesGroupDefinitionByName(name);
if (pagsGroups.size() > 1) {
logger.error("More than one PAGS group with name {} found.", name);
