From de317675a8069b747cb253ba3e2b5dc394ca36ef Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sat, 18 Jul 2026 21:44:51 +0000
Subject: [PATCH] =Base Integrations mainly done - doing a test with setting up the Square integration to follow
---
inc/integrations/UserConnection.php | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/inc/integrations/UserConnection.php b/inc/integrations/UserConnection.php
index f1f61d1..5202e6e 100644
--- a/inc/integrations/UserConnection.php
+++ b/inc/integrations/UserConnection.php
@@ -9,6 +9,7 @@
}
trait UserConnection {
+ use _Base;
protected function determineUser():void
{
if (current_user_can('manage_options')) {
@@ -26,6 +27,13 @@
$this->initializeRateLimiters();
return true;
}
+ protected function determineUserID(int $userID):bool|int
+ {
+ if (!$this->userCanConnect($userID)) {
+ return false;
+ }
+ return $userID;
+ }
protected function clearUser():void
{
$this->userID = false;
--
Gitblit v1.10.0