fixed permission check for publishing wms