refactoring

rename hasPublishPermission by getPublishPermission