<?php

namespace ShopManagerPro\Shared;

class CapabilityService {
	public static function requireReadCapability() {
		return self::requireEditCapability();
	}

	public static function requireEditCapability() {
		$type = wp_get_environment_type();
		if ($type === 'local') {
			return true;
		}

return current_user_can('edit_products');
	}

	public static function requireDevMode() {
		return defined('WP_DEBUG') && WP_DEBUG;
	}
}
