mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 08:18:08 +00:00
eat(api): add service-applications API to manage service applications
This commit is contained in:
1 parent
72118d61f9
commit
8ad65a0ef8
9 files changed
+1298
-2
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user