---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [safety](../index.md) / isOperationAlwaysBlocked

# Function: isOperationAlwaysBlocked()

> **isOperationAlwaysBlocked**(`config`, `operation`): `boolean`

Defined in: [packages/b2c-tooling-sdk/src/safety/safety-guard.ts:121](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/safety/safety-guard.ts#L121)

Whether a safety config blocks every request to an operation, whatever its
path parameters. Used to hide operations a program can never call.

`operation.path` is the path template with parameters as `{name}`
placeholders. Rules are matched against the template, so a rule that names a
specific parameter value (rather than `*`) doesn't make an operation visible.
Job rules are the exception: when the job ID is a parameter, a job rule that
allows or confirms any job keeps the operation visible. Temporary allows are
not considered.

## Parameters

### config

[`SafetyConfig`](../interfaces/SafetyConfig.md)

### operation

[`SafetyOperation`](../interfaces/SafetyOperation.md)

## Returns

`boolean`
