feat(auth): enhance authorization checks in Livewire components for resource management

This commit is contained in:
Andras Bacsai committed 2025-08-26 10:27:38 +02:00
1 parent ae79a98d72
commit ae1b0de561
13 files changed
+184 -77

No files matched your search

@@ -50,7 +50,16 @@
<x-forms.input
helper="You can add a custom name for your container.<br><br>The name will be converted to slug format when you save it. <span class='font-bold dark:text-warning'>You will lose the rolling update feature!</span>"
instantSave id="customInternalName" label="Custom Container Name" />
<x-forms.button type="submit">Save</x-forms.button>
@can('update', $application)
<x-forms.button type="submit">
Save
</x-forms.button>
@else
<x-forms.button type="submit" disabled
title="You don't have permission to update this application. Contact your team administrator for access.">
Save
</x-forms.button>
@endcan
</form>
@endif
@if ($application->build_pack === 'dockercompose')
@@ -78,7 +87,16 @@
<div class="flex gap-2 items-end pt-4">
<h3>GPU</h3>
@if ($isGpuEnabled)
<x-forms.button type="submit">Save</x-forms.button>
@can('update', $application)
<x-forms.button type="submit">
Save
</x-forms.button>
@else
<x-forms.button type="submit" disabled
title="You don't have permission to update this application. Contact your team administrator for access.">
Save
</x-forms.button>
@endcan
@endif
</div>
@endif