Skip to content

Commit 8dd31f8

Browse files
committed
Fix test, update changelog
1 parent 9b654d2 commit 8dd31f8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
1010
* Terminal was not properly displaying longer lines leading to some visual inconsistency.
1111
* Assorted translation updates.
1212
* Pagination for server listing now properly respects configuration setting.
13+
* Client API now properly respects permissions that are set and allows subusers to access their assigned servers.
1314

1415
### Changed
1516
* Removed PhraseApp integration from Panel code as it is no longer used.

tests/Unit/Http/Controllers/Base/IndexControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function testIndexController()
7373

7474
$this->request->shouldReceive('input')->with('query')->once()->andReturn('searchTerm');
7575
$this->repository->shouldReceive('setSearchTerm')->with('searchTerm')->once()->andReturnSelf()
76-
->shouldReceive('filterUserAccessServers')->with($model, User::FILTER_LEVEL_ALL)
76+
->shouldReceive('filterUserAccessServers')->with($model, User::FILTER_LEVEL_ALL, config('pterodactyl.paginate.frontend.servers'))
7777
->once()->andReturn($paginator);
7878

7979
$response = $this->controller->getIndex($this->request);

0 commit comments

Comments
 (0)