From 719fb86c7a6f8ab4395143c093e2bd51172df41c Mon Sep 17 00:00:00 2001 From: Hosteroid Date: Mon, 20 Oct 2025 18:21:05 +0300 Subject: [PATCH] Remove admin check from tags query in Domain model Simplifies the tags query by removing the isAdmin check. Now, if a user ID is provided, the query filters by user_id regardless of admin status. --- app/Models/Domain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Domain.php b/app/Models/Domain.php index c20210c..0061db7 100644 --- a/app/Models/Domain.php +++ b/app/Models/Domain.php @@ -305,7 +305,7 @@ class Domain extends Model $sql = "SELECT DISTINCT tags FROM domains WHERE tags IS NOT NULL AND tags != ''"; $params = []; - if ($userId && !$this->getUserModel()->isAdmin($userId)) { + if ($userId) { $sql .= " AND user_id = ?"; $params[] = $userId; }