mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 04:14:59 +00:00
switch to auth()->user from session
This commit is contained in:
1 parent
e60ec6c47e
commit
833e45155d
32 files changed
+90
-77
No files matched your search
@@ -16,7 +16,7 @@ class PrivateKey extends BaseModel
|
||||
static public function ownedByCurrentTeam(array $select = ['*'])
|
||||
{
|
||||
$selectArray = collect($select)->concat(['id']);
|
||||
return PrivateKey::whereTeamId(session('currentTeam')->id)->select($selectArray->all());
|
||||
return PrivateKey::whereTeamId(auth()->user()->currentTeam()->id)->select($selectArray->all());
|
||||
}
|
||||
|
||||
public function isEmpty()
|
||||
|
||||
Reference in new issue
Block a user