add checkPermission to BlockHandler's API