|
|
|
@ -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,6 +366,14 @@ class PresenceController extends Controller
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else{ |
|
|
|
|
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, |
|
|
|
@ -366,6 +381,7 @@ class PresenceController extends Controller
|
|
|
|
|
"status_assign" => false |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return $temp; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|