add ownership to publications, fix isMaster permissions