@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | protected function canUpdate($request, $entity) |
| 33 | 33 | { |
| 34 | - if($this->isVolunteerAdmin($request)) |
|
| 34 | + if($this->isVolunteerAdmin($request)) |
|
| 35 | 35 | { |
| 36 | 36 | return true; |
| 37 | 37 | } |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | } |
| 52 | 52 | if(!isset($obj['departmentID'])) |
| 53 | 53 | { |
| 54 | - return false; |
|
| 54 | + return false; |
|
| 55 | 55 | } |
| 56 | 56 | return $this->isUserDepartmentLead($obj['departmentID'], $this->user); |
| 57 | 57 | } |
@@ -117,8 +117,8 @@ discard block |
||
| 117 | 117 | $ret = $dataTable->update($filter, $entArray[$i]); |
| 118 | 118 | if($ret === false) |
| 119 | 119 | { |
| 120 | - $myRet = false; |
|
| 121 | - array_push($errors, $array[$i]); |
|
| 120 | + $myRet = false; |
|
| 121 | + array_push($errors, $array[$i]); |
|
| 122 | 122 | } |
| 123 | 123 | } |
| 124 | 124 | if($myRet) |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | $entity = $this->processShift($entity, $request); |
| 207 | 207 | if(isset($entity['minShifts']) && $entity['minShifts'] > 0) |
| 208 | 208 | { |
| 209 | - $shift->makeCopy($dataTable); |
|
| 209 | + $shift->makeCopy($dataTable); |
|
| 210 | 210 | } |
| 211 | 211 | if(isset($entity['overlap']) && $entity['overlap']) |
| 212 | 212 | { |