More model updates to more places than I anticipated.
This probably broke a lot of things.
This commit is contained in:
parent
0d61417814
commit
4f61637284
21 changed files with 339 additions and 433 deletions
|
@ -156,14 +156,14 @@ class SubuserController extends Controller
|
|||
|
||||
try {
|
||||
$repo = new SubuserRepository;
|
||||
$id = $repo->create($server->id, $request->except([
|
||||
'_token',
|
||||
$subuser = $repo->create($server->id, $request->only([
|
||||
'permissions', 'email',
|
||||
]));
|
||||
Alert::success('Successfully created new subuser.')->flash();
|
||||
|
||||
return redirect()->route('server.subusers.view', [
|
||||
'uuid' => $uuid,
|
||||
'id' => md5($id),
|
||||
'id' => md5($subuser->id),
|
||||
]);
|
||||
} catch (DisplayValidationException $ex) {
|
||||
return redirect()->route('server.subusers.new', $uuid)->withErrors(json_decode($ex->getMessage()))->withInput();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue