|
@@ 64-67 (lines=4) @@
|
| 61 |
|
{ |
| 62 |
|
$user = $this->_getUser($id, $token); |
| 63 |
|
|
| 64 |
|
if ($user === null) { |
| 65 |
|
$this->Flash->error(__d('community', 'User was not found')); |
| 66 |
|
return $this->redirect(['action' => 'login']); |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
if ($user->status) { |
| 70 |
|
$this->Flash->error(__d( |
|
@@ 145-148 (lines=4) @@
|
| 142 |
|
{ |
| 143 |
|
$user = $this->_getUser($id, $token); |
| 144 |
|
|
| 145 |
|
if ($user === null) { |
| 146 |
|
$this->Flash->error(__d('community', 'User was not found')); |
| 147 |
|
return $this->redirect(['action' => 'login']); |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
if ($this->request->is(['patch', 'post', 'put'])) { |
| 151 |
|
$entity = $this->Users->patchEntity($user, $this->request->getData()); |