geno/wp-content/plugins/mailpoet/lib/Automation/Engine/API/Endpoint.php

16 lines
372 B
PHP
Raw Normal View History

2024-02-01 17:24:18 +05:30
<?php declare(strict_types = 1);
namespace MailPoet\Automation\Engine\API;
if (!defined('ABSPATH')) exit;
use MailPoet\API\REST\Endpoint as MailPoetEndpoint;
use MailPoet\Automation\Engine\Engine;
abstract class Endpoint extends MailPoetEndpoint {
public function checkPermissions(): bool {
return current_user_can(Engine::CAPABILITY_MANAGE_AUTOMATIONS);
}
}