Admins can now delete other admins, but not themselves.

This commit is contained in:
Ismo Vuorinen
2013-07-18 13:01:24 +03:00
parent 140dcd21d5
commit 61f5693474
3 changed files with 29 additions and 5 deletions

View File

@@ -151,7 +151,7 @@ class Yllapito extends CI_Controller
redirect('yllapito/users/'.$redir);
break;
case 'delete':
$this->user->delete($user_id);
$this->users->delete($user_id);
redirect('yllapito/users');
break;
case 'save':