---
title: "hasPermission(_:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/wkwebextensioncontext/haspermission(_:)"
---

# hasPermission(_:)

Checks the specified permission against the currently granted permissions.

## Declaration

```swift
func hasPermission(_ permission: WKWebExtension.Permission) -> Bool
```

## Parameters

- `permission`: The permission for which to return the status.

## See Also

### Related Documentation

- [currentPermissions](webkit/wkwebextensioncontext/currentpermissions.md)
- [hasPermission(_:in:)](webkit/wkwebextensioncontext/haspermission(_:in:).md)
- [permissionStatus(for:)](webkit/wkwebextensioncontext/permissionstatus(for:)-3qq2w.md)
- [permissionStatus(for:in:)](webkit/wkwebextensioncontext/permissionstatus(for:in:)-4h82n.md)
