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
703be0d7e3
commit
e47bcb4c65
2 files changed
+1
-2
No files matched your search
@@ -14,7 +14,6 @@ class MasterTaskResource extends JsonResource
|
|||||||
*/
|
*/
|
||||||
public function toArray($request)
|
public function toArray($request)
|
||||||
{
|
{
|
||||||
dd($this->usersOutsideTeam);
|
|
||||||
return [
|
return [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'name' => $this->title,
|
'name' => $this->title,
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ class MasterTask extends Model
|
|||||||
if (!$this->team){
|
if (!$this->team){
|
||||||
return $users;
|
return $users;
|
||||||
}
|
}
|
||||||
|
dd($users);
|
||||||
return $users->filter(function ($user) {
|
return $users->filter(function ($user) {
|
||||||
return !in_array($this->team->id, isset($user->teams) ? $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