mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
no message
This commit is contained in:
1 parent
a8abb07d29
commit
7c52bc17ef
1 file changed
+1
-4
@@ -43,10 +43,7 @@ class MasterTask extends Model
|
||||
}
|
||||
|
||||
return $users->filter(function ($user) {
|
||||
if (!isset($user->teams)) {
|
||||
return true;
|
||||
}
|
||||
return !in_array($this->team->id, $user->teams->pluck('id')->unique()->toArray());
|
||||
return !in_array($this->team->id, isset($user->teams) ? $user->teams->pluck('id')->unique()->toArray() : []);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user