File "AuthRead.php"
Full Path: /home/u886502366/domains/almoasronppbags.com/public_html/newtest/wp-content/plugins/depicter/vendor/typerocket/core/src/Http/Middleware/AuthRead.php
File size: 441 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace TypeRocket\Http\Middleware;
use TypeRocket\Exceptions\HttpError;
/**
* Class AuthRead
*
* Authenticate user has read access and if the user does not
* invalidate the response.
*
* @package TypeRocket\Http\Middleware
*/
class AuthRead extends Middleware
{
public function handle() {
if ( ! current_user_can('read') ) {
HttpError::abort(401);
}
$this->next->handle();
}
}