From 62fd299fa21c25962113b20ca7201274f71114ba Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 21 Jan 2018 11:38:16 -0600 Subject: [PATCH] Fix some egregious search and replace action... --- app/Policies/APIKeyPolicy.php | 2 +- app/Policies/ServerPolicy.php | 2 +- app/Repositories/Eloquent/NodeRepository.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Policies/APIKeyPolicy.php b/app/Policies/APIKeyPolicy.php index e8556ca9c..69ce45c04 100644 --- a/app/Policies/APIKeyPolicy.php +++ b/app/Policies/APIKeyPolicy.php @@ -39,7 +39,7 @@ class APIKeyPolicy })->values(); }); - return $permissions->setSearchTerm($permission, true) !== false; + return $permissions->search($permission, true) !== false; } /** diff --git a/app/Policies/ServerPolicy.php b/app/Policies/ServerPolicy.php index 8891fa87f..9b4db6f05 100644 --- a/app/Policies/ServerPolicy.php +++ b/app/Policies/ServerPolicy.php @@ -32,7 +32,7 @@ class ServerPolicy })->values(); }); - return $permissions->setSearchTerm($permission, true) !== false; + return $permissions->search($permission, true) !== false; } /** diff --git a/app/Repositories/Eloquent/NodeRepository.php b/app/Repositories/Eloquent/NodeRepository.php index ed0dce003..61d93927e 100644 --- a/app/Repositories/Eloquent/NodeRepository.php +++ b/app/Repositories/Eloquent/NodeRepository.php @@ -65,7 +65,7 @@ class NodeRepository extends EloquentRepository implements NodeRepositoryInterfa $instance = $this->getBuilder()->with('location')->withCount('servers'); if ($this->hasSearchTerm()) { - $instance->setSearchTerm($this->getSearchTerm()); + $instance->search($this->getSearchTerm()); } return $instance->paginate(25, $this->getColumns());