diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-12-09 20:35:40 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-12-09 20:35:40 -0500 |
commit | 67d01951f5a0a8e2201707162c1f7454f26ac798 (patch) | |
tree | 17729d00327ee58b6256c6a0ba261624717f5797 /app/Controller/ProjectPermissionController.php | |
parent | 86d04bc0ef7f6f6f501a0aef16a7855aaebe95c2 (diff) |
Rewrite component to change user/group role
Diffstat (limited to 'app/Controller/ProjectPermissionController.php')
-rw-r--r-- | app/Controller/ProjectPermissionController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controller/ProjectPermissionController.php b/app/Controller/ProjectPermissionController.php index 1aa59c6d..56777b25 100644 --- a/app/Controller/ProjectPermissionController.php +++ b/app/Controller/ProjectPermissionController.php @@ -132,7 +132,7 @@ class ProjectPermissionController extends BaseController if (! empty($project) && ! empty($values) && $this->projectUserRoleModel->changeUserRole($project['id'], $values['id'], $values['role'])) { $this->response->json(array('status' => 'ok')); } else { - $this->response->json(array('status' => 'error')); + $this->response->json(array('status' => 'error'), 500); } } |