Adding check for resource.action type.