$77 GRAYBYTE WORDPRESS FILE MANAGER $42

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

/home/bravetechrwanda/itiministry.org/wp-content/plugins/give/src/Donations/Endpoints/

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

namespace Give\Donations\Endpoints;

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

abstract class Endpoint implements RestRoute
{
    /**
     * @var string
     */
    protected $endpoint;

    /**
     * @param  string  $value
     * @since 2.20.0
     *
     * @return bool
     */
    public function validateInt($value)
    {
        return filter_var($value, FILTER_VALIDATE_INT);
    }

    /**
     * Check user permissions
     * @since 4.14.0 update permission capability to use facade
     * @since 4.3.1 update permissions
     * @since 2.20.0
     *
     * @return bool|WP_Error
     */
    public function permissionsCheck()
    {
        if (UserPermissions::donations()->canView()) {
            return true;
        }

        return new WP_Error(
            'rest_forbidden',
            __("You don't have permission to view Donations", 'give'),
            ['status' => $this->authorizationStatusCode()]
        );
    }

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

        return 401;
    }
}

Current_dir [ WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
DonationActions.php
6.711 KB
28 Jan 2026 8.00 PM
bravetechrwanda / bravetechrwanda
0644
Endpoint.php
1.244 KB
28 Jan 2026 8.00 PM
bravetechrwanda / bravetechrwanda
0644
ListDonations.php
11.633 KB
30 Oct 2025 12.17 AM
bravetechrwanda / bravetechrwanda
0644
ListDonationsStats.php
3.355 KB
1 Oct 2025 3.37 PM
bravetechrwanda / bravetechrwanda
0644
SwitchDonationView.php
1.466 KB
12 May 2022 3.49 AM
bravetechrwanda / bravetechrwanda
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF