Browse Source

fix work area restriction

pull/3/head
wahyu 1 year ago
parent
commit
c422bade05
  1. 28
      app/Http/Controllers/PresenceController.php

28
app/Http/Controllers/PresenceController.php

@ -345,6 +345,13 @@ class PresenceController extends Controller
"status_assign" => true
);
}
} else {
// bypass work area restriction
$temp[]=array(
"activity_id" => null,
"boundary" => true,
"status_assign" => true
);
}
}
// assign and not in boundary
@ -359,12 +366,21 @@ class PresenceController extends Controller
}
}
else{
// not assign
$temp[]=array(
"activity_id" => null,
"boundary" => false,
"status_assign" => false
);
if ($user->status_boundary) {
// bypass work area restriction
$temp[]=array(
"activity_id" => null,
"boundary" => true,
"status_assign" => true
);
} else {
// not assign
$temp[]=array(
"activity_id" => null,
"boundary" => false,
"status_assign" => false
);
}
}
return $temp;
}

Loading…
Cancel
Save