Rings with modules having a restricted injectivity domain