Admins can now modify details of other admins

This commit is contained in:
Ismo Vuorinen
2013-07-17 14:04:21 +03:00
parent 69eb004af1
commit f0f1d71c48
4 changed files with 92 additions and 1 deletions

View File

@@ -12,6 +12,21 @@ class User_model extends MY_Model
parent::__construct();
}
public function save($uid = null, $data = null)
{
if (empty($uid) || empty($data)) {
return false;
}
unset(
$data['from_page'],
$data['savedata'],
$data['submit']
);
return $this->update($uid, $data);
}
public function passwordhash($password = null)
{
return hash(