1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-22 17:12:30 +01:00

Fix some egregious search and replace action...

This commit is contained in:
Dane Everitt 2018-01-21 11:38:16 -06:00
parent 016c4f4782
commit 62fd299fa2
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
3 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ class APIKeyPolicy
})->values();
});
return $permissions->setSearchTerm($permission, true) !== false;
return $permissions->search($permission, true) !== false;
}
/**

View File

@ -32,7 +32,7 @@ class ServerPolicy
})->values();
});
return $permissions->setSearchTerm($permission, true) !== false;
return $permissions->search($permission, true) !== false;
}
/**

View File

@ -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());