public function addRole($id, $role) { if (empty($role) || !($user = $this->getUser($id))) { return false; } // Add the role to the $user['roles'] array $user['roles'][] = $role; return $this->saveUser($user); }