eat(api): add service-applications API to manage service applications

This commit is contained in:
Bakr committed 2026-03-29 06:03:47 +03:00
1 parent 72118d61f9
commit 8ad65a0ef8
9 files changed
+1298 -2

No files matched your search

+9 -2
View File
@@ -30,8 +30,15 @@ class ServiceApplicationPolicy
*/
public function update(User $user, ServiceApplication $serviceApplication): bool
{
// return Gate::allows('update', $serviceApplication->service);
return true;
return Gate::allows('update', $serviceApplication->service);
}
/**
* Determine whether the user can deploy or run lifecycle actions on the parent service stack.
*/
public function deploy(User $user, ServiceApplication $serviceApplication): bool
{
return Gate::allows('deploy', $serviceApplication->service);
}
/**