mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-17 21:20:29 +00:00
switch to auth()->user from session
This commit is contained in:
@@ -13,7 +13,7 @@ class Project extends BaseModel
|
||||
|
||||
static public function ownedByCurrentTeam()
|
||||
{
|
||||
return Project::whereTeamId(session('currentTeam')->id)->orderBy('name');
|
||||
return Project::whereTeamId(auth()->user()->currentTeam()->id)->orderBy('name');
|
||||
}
|
||||
|
||||
protected static function booted()
|
||||
|
||||
Reference in New Issue
Block a user