14 lines
397 B
PHP
14 lines
397 B
PHP
<?php
|
|
|
|
namespace Automattic\Jetpack_Boost\REST_API\Permissions;
|
|
|
|
use Automattic\Jetpack_Boost\REST_API\Contracts\Permission;
|
|
|
|
class Current_User_Admin implements Permission {
|
|
|
|
// $request is required to adhere to the contract.
|
|
//phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
|
|
public function verify( $request ) {
|
|
return current_user_can( 'manage_options' );
|
|
}
|
|
}
|