Check the access to the DbResource.