This commit is contained in:
Andras Bacsai
2023-06-22 20:52:49 +02:00
parent daec4ac9b6
commit 7ce1dc0d48
5 changed files with 18 additions and 12 deletions

View File

@@ -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()
{