PluginProbe
Elementor Website Builder – more than just a page builder / 4.3.0-beta3
Elementor Website Builder – more than just a page builder v4.3.0-beta3
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
elementor / modules / mcp / abilities / utils / insufficient-permissions-error.php

insufficient-permissions-error.php in Elementor Website Builder – more than just a page builder 4.3.0-beta3, at modules/mcp/abilities/utils/insufficient-permissions-error.php

25 lines 545 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Elementor\Modules\Mcp\Abilities\Utils;
4
5 use Elementor\Modules\Components\Components_Access_Controller;
6
7 if ( ! defined( 'ABSPATH' ) ) {
8 exit;
9 }
10
11 class Insufficient_Permissions_Error {
12
13 public static function for_action( string $action ): \WP_Error {
14 return new \WP_Error(
15 'insufficient_permissions',
16 __( 'You do not have permission to perform this action.', 'elementor' ),
17 [
18 'status' => \WP_Http::FORBIDDEN,
19 'action' => $action,
20 'tier' => Components_Access_Controller::get_access_tier(),
21 ]
22 );
23 }
24 }
25