Security update enabling update_nn to edit system details

This commit is contained in:
2024-05-21 19:50:57 +10:00
parent ab2e288f06
commit aaec5f8f4a
5 changed files with 52 additions and 43 deletions

View File

@@ -1,12 +1,12 @@
@php
use App\Models\Address;
use App\Models\Address;
@endphp
<!-- $o=System::class -->
@extends('layouts.app')
@section('htmlheader_title')
@can('admin',$o) @if($o->exists) Update @else Add @endif @endcan System
@can('update_nn',$o) @if($o->exists) Update @else Add @endif @endcan System
@endsection
@section('content')
@@ -21,6 +21,7 @@
<p>This system is the ZC for the following zones: <strong class="highlight">{!! $o->zcs->sortBy('zone_id')->map(function($item) { return sprintf('%d@%s',$item->zone_id,$item->domain->name); })->join('</strong>, <strong class="highlight">') !!} </strong></p>
@endif
@include('widgets.error')
<div class="accordion" id="accordion_homepage">
@if ($o->exists)
<!-- System -->
@@ -163,8 +164,8 @@
<span class="btn btn-sm btn-danger" role="alert" style="text-align: left;">
{!! $message !!}
</span>
</div>
</div>
</div>
@enderror
@can('admin',$o)