mirror of
https://github.com/Ekokumppanit/ystavakylaecard.git
synced 2026-02-07 15:44:35 +00:00
Admins can now modify details of other admins
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user