Fix a copy-paste error in the "only-published" API authorization class.