public function makeAdmin()
{
if ($this->isAdmin()) {
return true;
}
// If already saved, use the standard function.
if ($this->guid && !make_user_admin($this->guid)) {
return false;
}
// need to manually set attributes since they've already been loaded.
$this->attributes['admin'] = 'yes';
return true;
}