rename isPublishPermission to hasPublishPermission