Skip to content
This repository was archived by the owner on Apr 20, 2024. It is now read-only.

Commit 01436df

Browse files
committed
Missed commented out fieldset
1 parent 89af5f1 commit 01436df

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Sources/AdminPanel/Controllers/BackendUsersController.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,13 @@ public final class BackendUsersController {
5555
*/
5656
public func create(request: Request) throws -> ResponseRepresentable {
5757
try Gate.allowOrFail(request, "admin")
58-
58+
59+
let fieldset = try request.storage["_fieldset"] as? Node ?? BackendUserForm.emptyUser.makeNode(in: nil)
60+
5961
return try drop.view.make(
6062
"BackendUsers/edit",
6163
[
62-
// "fieldset": BackendUserForm.getFieldset(request),
64+
"fieldset": fieldset,
6365
"roles": Configuration.shared?.getRoleOptions(request.authedBackendUser().role).makeNode(in: nil) ?? [:],
6466
"defaultRole": (Configuration.shared?.defaultRole ?? "user").makeNode(in: nil)
6567
],

0 commit comments

Comments
 (0)