From 0dfe1d8afafc59c4a5559c498342668d5a58d6ef Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Thu, 23 Jul 2026 22:41:41 +0000
Subject: [PATCH] =Still working away at the Integrations overhaul
---
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