More update on security, user to edit their own system with 59ec5f5

This commit is contained in:
Deon George 2024-05-19 23:30:14 +10:00
parent f279d85b08
commit b4a42f6780
4 changed files with 12 additions and 12 deletions

View File

@ -241,7 +241,9 @@
<p>No session details exist</p>
@endif
@include('system.widget.form-session')
@can('update_nn',$o)
@include('system.widget.form-session')
@endcan
</div>
</div>
</div>

View File

@ -36,7 +36,7 @@
@endif
</span>
@can('update',$o)
@can('update_nn',$o)
<div class="col-2">
<button type="submit" name="submit" class="btn btn-success float-end">Add</button>
</div>

View File

@ -36,7 +36,7 @@
@endif
</span>
@can('update',$o)
@can('update_nn',$o)
<div class="col-2">
<button type="submit" name="submit" class="btn btn-success float-end">Add</button>
</div>

View File

@ -46,7 +46,7 @@ use App\Models\Zone;
<label for="sespass" class="form-label">Session Password</label>
<div class="input-group has-validation">
<span class="input-group-text"><i class="bi bi-lock"></i></span>
<input type="text" style="width: 35%;" class="form-control @error('sespass') is-invalid @enderror" id="sespass" placeholder="Session" name="sespass" value="{{ old('sespass') }}" @cannot('update',$o)disabled @endcannot required>
<input type="text" style="width: 35%;" class="form-control @error('sespass') is-invalid @enderror" id="sespass" placeholder="Session" name="sespass" value="{{ old('sespass') }}" required>
<span class="invalid-feedback" role="alert">
@error('sespass')
{{ $message }}
@ -62,7 +62,7 @@ use App\Models\Zone;
<label for="pktpass" class="form-label">Packet Password</label>
<div class="input-group has-validation">
<span class="input-group-text"><i class="bi bi-box"></i></span>
<input type="text" style="width: 35%;" class="form-control @error('pktpass') is-invalid @enderror" id="pktpass" placeholder="Packet" name="pktpass" value="{{ old('pktpass') }}" @cannot('update',$o)disabled @endcannot required>
<input type="text" style="width: 35%;" class="form-control @error('pktpass') is-invalid @enderror" id="pktpass" placeholder="Packet" name="pktpass" value="{{ old('pktpass') }}" required>
<span class="invalid-feedback" role="alert">
@error('pktpass')
{{ $message }}
@ -80,7 +80,7 @@ use App\Models\Zone;
<label for="fixpass" class="form-label">Areafix Password</label>
<div class="input-group has-validation">
<span class="input-group-text"><i class="bi bi-card-text"></i></span>
<input type="text" style="width: 35%;" class="form-control @error('fixpass') is-invalid @enderror" id="fixpass" placeholder="Areafix" name="fixpass" value="{{ old('fixpass') }}" @cannot('update',$o)disabled @endcannot required>
<input type="text" style="width: 35%;" class="form-control @error('fixpass') is-invalid @enderror" id="fixpass" placeholder="Areafix" name="fixpass" value="{{ old('fixpass') }}" required>
<span class="invalid-feedback" role="alert">
@error('fixpass')
{{ $message }}
@ -96,7 +96,7 @@ use App\Models\Zone;
<label for="ticpass" class="form-label">TIC Password</label>
<div class="input-group has-validation">
<span class="input-group-text"><i class="bi bi-archive"></i></span>
<input type="text" style="width: 35%;" class="form-control @error('ticpass') is-invalid @enderror" id="ticpass" placeholder="TIC" name="ticpass" value="{{ old('ticpass') }}" @cannot('update',$o)disabled @endcannot required>
<input type="text" style="width: 35%;" class="form-control @error('ticpass') is-invalid @enderror" id="ticpass" placeholder="TIC" name="ticpass" value="{{ old('ticpass') }}" required>
<span class="invalid-feedback" role="alert">
@error('ticpass')
{{ $message }}
@ -122,11 +122,9 @@ use App\Models\Zone;
@endif
</span>
@can('update',$o)
<div class="col-2">
<button type="submit" name="submit" class="btn btn-success float-end">Add</button>
</div>
@endcan
<div class="col-2">
<button type="submit" name="submit" class="btn btn-success float-end">Add</button>
</div>
</div>
</div>
</div>