add isPublishPermission method