mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
attachments upload
This commit is contained in:
1 parent
7cec94337b
commit
ed3300ad29
9 files changed
+689
-12
No files matched your search
@@ -37,6 +37,11 @@ class MasterTask extends Model
|
||||
{
|
||||
$users = $this->subtasks->pluck('user')->unique();
|
||||
|
||||
// ak nie je uvedeny ziaden team, tak sa vratia vsetci useri
|
||||
if (!$this->team){
|
||||
return $users;
|
||||
}
|
||||
|
||||
return $users->filter(function ($user) {
|
||||
return !in_array($this->team->id, $user->teams->pluck('id')->unique()->toArray());
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user