summaryrefslogtreecommitdiff
path: root/app/Controller/UserModificationController.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-03-11 15:24:34 -0500
committerFrederic Guillot <fred@kanboard.net>2017-03-11 15:24:34 -0500
commita22b8f3dc73555800caf55768f04a7a2ce4af7f2 (patch)
tree60257cb9b508da83be5a9477c434fb53cc3c6f6d /app/Controller/UserModificationController.php
parent469112918d0cfa6a43a7fdb829cd19bdf85cfcbe (diff)
Make user actions available from contextual menu
Diffstat (limited to 'app/Controller/UserModificationController.php')
-rw-r--r--app/Controller/UserModificationController.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Controller/UserModificationController.php b/app/Controller/UserModificationController.php
index d339fd9a..ed145921 100644
--- a/app/Controller/UserModificationController.php
+++ b/app/Controller/UserModificationController.php
@@ -57,13 +57,13 @@ class UserModificationController extends BaseController
if ($valid) {
if ($this->userModel->update($values)) {
$this->flash->success(t('User updated successfully.'));
+ $this->response->redirect($this->helper->url->to('UserViewController', 'show', array('user_id' => $user['id'])), true);
+ return;
} else {
- $this->flash->failure(t('Unable to update your user.'));
+ $this->flash->failure(t('Unable to update this user.'));
}
-
- return $this->response->redirect($this->helper->url->to('UserViewController', 'show', array('user_id' => $user['id'])));
}
- return $this->show($values, $errors);
+ $this->show($values, $errors);
}
}