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