Completed Foundation\Resource::getResourcesByUser().