mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 02:15:51 +00:00
api api api api
This commit is contained in:
1 parent
5e55c799ec
commit
efa2ae5177
7 files changed
+316
-83
No files matched your search
@@ -28,6 +28,9 @@ class ServersController extends Controller
|
||||
private function removeSensitiveData($server)
|
||||
{
|
||||
$token = auth()->user()->currentAccessToken();
|
||||
$server->makeHidden([
|
||||
'id',
|
||||
]);
|
||||
if ($token->can('view:sensitive')) {
|
||||
return serializeApiResponse($server);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user