Policy changed

This commit is contained in:
HolgerHatGarKeineNode
2023-03-17 10:24:35 +01:00
parent ce2102c0e3
commit d9bf8a730a
3 changed files with 8 additions and 8 deletions

View File

@@ -17,7 +17,7 @@ class MeetupTable extends DataTableComponent
public function configure(): void public function configure(): void
{ {
$this->setPrimaryKey('id') $this->setPrimaryKey('id')
->setAdditionalSelects(['id', 'slug']) ->setAdditionalSelects(['meetups.id', 'meetups.slug', 'meetups.created_by'])
->setThAttributes(function (Column $column) { ->setThAttributes(function (Column $column) {
return [ return [
'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400',

10
composer.lock generated
View File

@@ -15109,16 +15109,16 @@
}, },
{ {
"name": "laravel-lang/lang", "name": "laravel-lang/lang",
"version": "12.18.5", "version": "12.18.6",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/Laravel-Lang/lang.git", "url": "https://github.com/Laravel-Lang/lang.git",
"reference": "61d2bb94035c1ce13fb7e4a26549730dd466a1b0" "reference": "4ac8e147c620c8ca721b24307ff8ba3637a6ebf6"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/Laravel-Lang/lang/zipball/61d2bb94035c1ce13fb7e4a26549730dd466a1b0", "url": "https://api.github.com/repos/Laravel-Lang/lang/zipball/4ac8e147c620c8ca721b24307ff8ba3637a6ebf6",
"reference": "61d2bb94035c1ce13fb7e4a26549730dd466a1b0", "reference": "4ac8e147c620c8ca721b24307ff8ba3637a6ebf6",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -15171,7 +15171,7 @@
"type": "open_collective" "type": "open_collective"
} }
], ],
"time": "2023-02-27T16:14:16+00:00" "time": "2023-03-16T12:49:54+00:00"
}, },
{ {
"name": "laravel-lang/publisher", "name": "laravel-lang/publisher",

View File

@@ -97,7 +97,7 @@
</x-button> </x-button>
</div> </div>
@endif @endif
@if(auth()->check() && auth()->user()->meetups->contains($row)) @can('update', $row)
<div> <div>
<x-button <x-button
:href="route('meetup.meetup.form', ['meetup' => $row->id, 'country' => $country])" :href="route('meetup.meetup.form', ['meetup' => $row->id, 'country' => $country])"
@@ -108,5 +108,5 @@
{{ __('Edit') }} {{ __('Edit') }}
</x-button> </x-button>
</div> </div>
@endif @endcan
</div> </div>