summaryrefslogtreecommitdiff
path: root/modules/user/controllers/admin_users.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/controllers/admin_users.php')
-rw-r--r--modules/user/controllers/admin_users.php3
1 files changed, 0 insertions, 3 deletions
diff --git a/modules/user/controllers/admin_users.php b/modules/user/controllers/admin_users.php
index 08618c8c..e6785e7b 100644
--- a/modules/user/controllers/admin_users.php
+++ b/modules/user/controllers/admin_users.php
@@ -27,7 +27,6 @@ class Admin_Users_Controller extends Controller {
public function add() {
$form = user::get_add_form_admin();
- rest::http_content_type(rest::JSON);
if($form->validate()) {
$user = user::create($form->add_user->inputs["name"]->value,
$form->add_user->full_name->value, $form->add_user->password->value);
@@ -47,7 +46,6 @@ class Admin_Users_Controller extends Controller {
}
public function delete($id) {
- rest::http_content_type(rest::JSON);
$user = ORM::factory("user", $id);
if (!$user->loaded) {
kohana::show_404();
@@ -77,7 +75,6 @@ class Admin_Users_Controller extends Controller {
}
public function edit($id) {
- rest::http_content_type(rest::JSON);
$user = ORM::factory("user", $id);
if (!$user->loaded) {
kohana::show_404();