Fix catching InsufficientAccessException when creating new entries

This commit is contained in:
Deon George 2025-04-21 17:18:22 +10:00
parent b7ca768cc6
commit ccff36361f
2 changed files with 3 additions and 1 deletions

View File

@ -379,7 +379,7 @@ class HomeController extends Controller
if ($key['dn']) { if ($key['dn']) {
$o = config('server')->fetch($key['dn']); $o = config('server')->fetch($key['dn']);
foreach (collect(old())->except(['key','dn','step','_token','userpassword_hash']) as $attr => $value) foreach (collect(old())->except(['key','dn','step','_token','userpassword_hash','rdn','rdn_value']) as $attr => $value)
$o->{$attr} = $value; $o->{$attr} = $value;
} }

View File

@ -10,6 +10,8 @@
@endsection @endsection
@section('main-content') @section('main-content')
<x-error/>
<div class="row"> <div class="row">
<div class="offset-1 col-10"> <div class="offset-1 col-10">
<div class="main-card mb-3 card"> <div class="main-card mb-3 card">