$44 GRAYBYTE WORDPRESS FILE MANAGER $66

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/home/bravrvjk/itiministry.org/wp-content/plugins/give/src/API/Endpoints/Logs/

HOME
Current File : /home/bravrvjk/itiministry.org/wp-content/plugins/give/src/API/Endpoints/Logs//Endpoint.php
<?php

namespace Give\API\Endpoints\Logs;

use Give\API\RestRoute;
use Give\Framework\Permissions\Facades\UserPermissions;
use WP_Error;

/**
 * Class Endpoint
 * @package GiveDivi\Divi\Routes
 *
 * @since 4.14.0 update permission capability to use facade
 * @since 2.10.0
 */
abstract class Endpoint implements RestRoute
{

    /**
     * @var string
     */
    protected $endpoint;

    /**
     * Check user permissions
     * @return bool|WP_Error
     */
    public function permissionsCheck()
    {
        if ( ! UserPermissions::settings()->canManage()) {
            return new WP_Error(
                'rest_forbidden',
                __('You don\'t have the right permissions to view Logs', 'give'),
                ['status' => $this->authorizationStatusCode()]
            );
        }

        return true;
    }

    // Sets up the proper HTTP status code for authorization.
    public function authorizationStatusCode()
    {
        if (is_user_logged_in()) {
            return 403;
        }

        return 401;
    }
}


Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
4 Apr 2026 1.57 AM
bravrvjk / bravrvjk
0755
Endpoint.php
1.019 KB
28 Jan 2026 8.00 PM
bravrvjk / bravrvjk
0644
FlushLogs.php
1.592 KB
24 Nov 2021 4.55 AM
bravrvjk / bravrvjk
0644
GetLogs.php
5.751 KB
5 Jun 2024 11.47 PM
bravrvjk / bravrvjk
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF