Bsf_Core_Rest::get_items_permissions_check( WP_REST_Request $request )

Check if a given request has access to activate license.


Description


Parameters

$request

(WP_REST_Request) (Required) Full details about the request.


Return

(WP_Error|boolean)


Source

File: admin/bsf-core/classes/class-bsf-core-rest.php

	public function get_items_permissions_check( $request ) {
		if ( current_user_can( 'manage_options' ) ) {
			return true;
		}

		return false;
	}

User Contributed Notes

You must log in before being able to contribute a note or feedback.