# HasEntitlement(string)

> Checks whether the current user is entitled to a specific entitlement.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Licensing](/engine/7000.0/script-reference/unityeditor/licensing.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static bool HasEntitlement(string entitlement)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The requested entitlement string.

### Returns

| Type                                                          | Description                                                                                                                      |
| ------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if the user is entitled to the entitlement string; `false` otherwise, including when the licensing system is unreachable. |

### Remarks

This method denies access when the licensing system is unreachable, which is the right default for a permission check.
