| @@ 82-89 (lines=8) @@ | ||
| 79 | { |
|
| 80 | $this->validateLoggedIn($request); |
|
| 81 | $uid = $args['name']; |
|
| 82 | if($uid === 'me') |
|
| 83 | { |
|
| 84 | $uid = $this->user->uid; |
|
| 85 | } |
|
| 86 | else if($uid !== $this->user->uid && $this->canRead($request) === false) |
|
| 87 | { |
|
| 88 | return $response->withStatus(401); |
|
| 89 | } |
|
| 90 | $dataTable = $this->getDataTable(); |
|
| 91 | $odata = $request->getAttribute('odata', new \ODataParams(array())); |
|
| 92 | $filter = $this->getFilterForPrimaryKey($uid); |
|
| @@ 153-160 (lines=8) @@ | ||
| 150 | { |
|
| 151 | $this->validateLoggedIn($request); |
|
| 152 | $uid = $args['uid']; |
|
| 153 | if($uid === 'me') |
|
| 154 | { |
|
| 155 | $uid = $this->user->uid; |
|
| 156 | } |
|
| 157 | else if($uid !== $this->user->uid && $this->canRead($request) === false) |
|
| 158 | { |
|
| 159 | return $response->withStatus(401); |
|
| 160 | } |
|
| 161 | $dataTable = $this->getDataTable(); |
|
| 162 | $odata = $request->getAttribute('odata', new \ODataParams(array())); |
|
| 163 | $filter = $this->getFilterForPrimaryKey($uid); |
|
| @@ 181-188 (lines=8) @@ | ||
| 178 | { |
|
| 179 | $this->validateLoggedIn($request); |
|
| 180 | $uid = $args['uid']; |
|
| 181 | if($uid === 'me') |
|
| 182 | { |
|
| 183 | $uid = $this->user->uid; |
|
| 184 | } |
|
| 185 | else if($uid !== $this->user->uid && $this->canRead($request) === false) |
|
| 186 | { |
|
| 187 | return $response->withStatus(401); |
|
| 188 | } |
|
| 189 | $dataTable = $this->getDataTable(); |
|
| 190 | $filter = $this->getFilterForPrimaryKey($uid); |
|
| 191 | $users = $dataTable->read($filter); |
|
| @@ 218-225 (lines=8) @@ | ||
| 215 | { |
|
| 216 | $this->validateLoggedIn($request); |
|
| 217 | $uid = $args['uid']; |
|
| 218 | if($uid === 'me') |
|
| 219 | { |
|
| 220 | $uid = $this->user->uid; |
|
| 221 | } |
|
| 222 | else if($uid !== $this->user->uid && $this->canRead($request) === false) |
|
| 223 | { |
|
| 224 | return $response->withStatus(401); |
|
| 225 | } |
|
| 226 | $dataTable = $this->getDataTable(); |
|
| 227 | $filter = $this->getFilterForPrimaryKey($uid); |
|
| 228 | $users = $dataTable->read($filter); |
|
| @@ 280-287 (lines=8) @@ | ||
| 277 | { |
|
| 278 | $this->validateLoggedIn($request); |
|
| 279 | $uid = $args['uid']; |
|
| 280 | if($uid === 'me') |
|
| 281 | { |
|
| 282 | $uid = $this->user->uid; |
|
| 283 | } |
|
| 284 | else if($uid !== $this->user->uid && $this->canRead($request) === false) |
|
| 285 | { |
|
| 286 | return $response->withStatus(401); |
|
| 287 | } |
|
| 288 | $dataTable = $this->getDataTable(); |
|
| 289 | $filter = $this->getFilterForPrimaryKey($uid); |
|
| 290 | $users = $dataTable->read($filter); |
|