if private mode enable, only admin can publish module