implement hasPermission with id's as params in securityDomainServices,
write tests