# elementor/4.3.2/modules/mcp/abilities/utils/insufficient-permissions-error.php

Elementor Website Builder – more than just a page builder, version 4.3.2. 25 lines.

- Page: https://pluginprobe.com/plugins/elementor/4.3.2/code/modules/mcp/abilities/utils/insufficient-permissions-error.php
- Raw: https://pluginprobe.com/plugins/elementor/4.3.2/raw/modules/mcp/abilities/utils/insufficient-permissions-error.php
- Modified: 2026-09-01T11:47:36+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/elementor/4.3.2/code/modules/mcp/abilities/utils/insufficient-permissions-error.php#L10-L20`.

```php
<?php

namespace Elementor\Modules\Mcp\Abilities\Utils;

use Elementor\Modules\Components\Components_Access_Controller;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

class Insufficient_Permissions_Error {

	public static function for_action( string $action ): \WP_Error {
		return new \WP_Error(
			'insufficient_permissions',
			__( 'You do not have permission to perform this action.', 'elementor' ),
			[
				'status' => \WP_Http::FORBIDDEN,
				'action' => $action,
				'tier' => Components_Access_Controller::get_access_tier(),
			]
		);
	}
}

```
