Skip to content

Commit 946512b

Browse files
committed
search for owner:<email> correctly.
1 parent b7a566a commit 946512b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
1010
* Fixes a bug that would leave orphaned databases on the system if there was an error during creation.
1111
* Fixes an issue that could occur if a UUID contained `#e#` formatting within it when it comes to creating databases.
1212
* Fixed node status display to account for updated daemon security changes.
13+
* Fixes default language being selected as German (defaults to English now).
1314

1415
### Changed
1516
* Using `node:<name>` when filtering servers now properly filters the servers by node name, rather than looking for the node ID.
17+
* Using `owner:<email>` when filtering servers now properly filters by the owner's email rather than ID.
1618
* Added some quick help buttons to the admin index page for getting support or checking the documentation.
1719
* Panel now displays `Pterodactyl Panel` as the company name if one is not set.
1820

app/Http/Controllers/Admin/ServersController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ public function getIndex(Request $request)
7070
list($field, $term) = explode(':', $match);
7171
if ($field === 'node') {
7272
$field = 'nodes.name';
73+
} else if ($field === 'owner') {
74+
$field = 'users.email';
7375
} else if (!strpos($field, '.')) {
7476
$field = 'servers.' . $field;
7577
}

0 commit comments

Comments
 (0)