Now when unpublishing the layer is unadvertised in GeoSever. Users with publish_resourcebase can still access the layer detail page.