update private/public checkbox handling code to allow wmts too

follow up to https://github.com/camptocamp/c2cgeoportal/commit/630b936cfb99fdd7617279129805aade3afaacc8 with missing code to handle the public/private checkbox