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

Commit

Permalink
Missed commented out fieldset
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettRToomey committed Jul 5, 2017
1 parent 89af5f1 commit 01436df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Sources/AdminPanel/Controllers/BackendUsersController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@ public final class BackendUsersController {
*/
public func create(request: Request) throws -> ResponseRepresentable {
try Gate.allowOrFail(request, "admin")


let fieldset = try request.storage["_fieldset"] as? Node ?? BackendUserForm.emptyUser.makeNode(in: nil)

return try drop.view.make(
"BackendUsers/edit",
[
// "fieldset": BackendUserForm.getFieldset(request),
"fieldset": fieldset,
"roles": Configuration.shared?.getRoleOptions(request.authedBackendUser().role).makeNode(in: nil) ?? [:],
"defaultRole": (Configuration.shared?.defaultRole ?? "user").makeNode(in: nil)
],
Expand Down

0 comments on commit 01436df

Please sign in to comment.