diff --git a/app/Models/PrivateKey.php b/app/Models/PrivateKey.php index 7c242dbb6..82858ff22 100644 --- a/app/Models/PrivateKey.php +++ b/app/Models/PrivateKey.php @@ -15,7 +15,7 @@ class PrivateKey extends BaseModel static public function ownedByCurrentTeam(array $select = ['*']) { $selectArray = collect($select)->concat(['id']); - return PrivateKey::whereTeamId(session('currentTeam')->id)->where('id', '>', 0)->select($selectArray->all()); + return PrivateKey::whereTeamId(session('currentTeam')->id)->select($selectArray->all()); } public function applications() { diff --git a/config/version.php b/config/version.php index d7596da3e..14b1389a5 100644 --- a/config/version.php +++ b/config/version.php @@ -1,3 +1,3 @@

Private Key

- - Save - - - Delete - + @if ($private_key->id > 0) + + Save + + + Delete + + @endif
Private Key used for SSH connection
@@ -36,7 +38,11 @@ disabled />
- + @if ($private_key->id > 0) + + @else + + @endif
diff --git a/versions.json b/versions.json index b354910c0..2d3740098 100644 --- a/versions.json +++ b/versions.json @@ -4,7 +4,7 @@ "version": "3.12.32" }, "v4": { - "version": "4.0.0-beta.2" + "version": "4.0.0-beta.3" } } -} \ No newline at end of file +}