Skip to content

Commit b8c3ab6

Browse files
committed
1 parent 1aa1912 commit b8c3ab6

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
@@ -20,6 +20,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
2020
* `[pre.4]` — Fixes bug preventing server updates from occurring by the system due to undefined `Auth::user()` in the event listener.
2121
* `[pre.4]` — Fixes `Server::byUuid()` caching to actually clear the cache for *all* users, rather than the logged in user by using cache tags.
2222
* `[pre.4]` — Fixes server listing on frontend not displaying a page selector when more than 10 servers exist.
23+
* `[pre.4]` — Fixes non-admin users being unable to create personal API keys.
2324

2425
### Added
2526
* Ability to assign multiple allocations at once when creating a new server.

app/Http/Controllers/Base/APIController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function save(Request $request)
5252
{
5353
try {
5454
$repo = new APIRepository($request->user());
55-
$secret = $repo->create($request->only([
55+
$secret = $repo->create($request->intersect([
5656
'memo', 'allowed_ips',
5757
'adminPermissions', 'permissions',
5858
]));

0 commit comments

Comments
 (0)