Fix: New registered candidates visibility (profile creation and tenant scope adjustment)
This commit is contained in:
@@ -25,7 +25,10 @@ trait BelongsToTenant
|
||||
}
|
||||
|
||||
if ($user->tenant_id) {
|
||||
$builder->where('tenant_id', $user->tenant_id);
|
||||
$builder->where(function ($query) use ($user) {
|
||||
$query->where('tenant_id', $user->tenant_id)
|
||||
->orWhereNull('tenant_id');
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user