Rewrite component to change user/group role

This commit is contained in:
Frederic Guillot
2016-12-09 20:35:40 -05:00
parent 86d04bc0ef
commit 67d01951f5
13 changed files with 233 additions and 144 deletions

View File

@@ -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);
}
}