A reaction–diffusion system governed by nonsmooth semipermeability problem