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