13 lines
339 B
PHP
13 lines
339 B
PHP
<?php declare(strict_types = 1);
|
|
|
|
namespace MailPoet\Automation\Engine\API;
|
|
|
|
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);
|
|
}
|
|
}
|