This commit is contained in:
HolgerHatGarKeineNode
2023-02-11 21:55:44 +01:00
parent a9fbe7ac14
commit 1b24e423a9
2 changed files with 2 additions and 1 deletions

View File

@@ -43,6 +43,7 @@ class NewsArticleForm extends Component
'type' => 'markdown_article', 'type' => 'markdown_article',
'value' => '', 'value' => '',
'read_time' => 1, 'read_time' => 1,
'news' => true,
'language_code' => 'de', 'language_code' => 'de',
'approved' => auth() 'approved' => auth()
->user() ->user()

View File

@@ -143,7 +143,7 @@
#{{ $loop->iteration }} Bild #{{ $loop->iteration }} Bild
</button> </button>
@if($bookCase->created_by === auth()->id()) @if(auth()->user()?->hasRole('super-admin') || app()->environment('local'))
<div x-data="{}"> <div x-data="{}">
<x-button <x-button
x-on:click="$wireui.confirmDialog({ x-on:click="$wireui.confirmDialog({