Started with user edit form
This commit is contained in:
@@ -31,7 +31,7 @@ export default class UsersController {
|
||||
.with('UserPolicy')
|
||||
.authorize('show', queriedUser)
|
||||
|
||||
return inertia.render('Users/Show', { queriedUser })
|
||||
return inertia.render('Users/Show', { user: queriedUser })
|
||||
}
|
||||
|
||||
public async edit({ bouncer, params, inertia }: HttpContextContract) {
|
||||
@@ -41,7 +41,7 @@ export default class UsersController {
|
||||
.with("UserPolicy")
|
||||
.authorize('edit', queriedUser)
|
||||
|
||||
return inertia.render("Users/Edit", { queriedUser })
|
||||
return inertia.render("Users/Edit", { user: queriedUser })
|
||||
}
|
||||
|
||||
public async update({}: HttpContextContract) {}
|
||||
|
||||
Reference in New Issue
Block a user