diff --git a/application/libraries/Aauth.php b/application/libraries/Aauth.php index 7dde4f2..1c56944 100644 --- a/application/libraries/Aauth.php +++ b/application/libraries/Aauth.php @@ -1291,7 +1291,19 @@ class Aauth { $this->aauth_db->where('group_id', $group_par); return $this->aauth_db->delete($this->config_vars['user_to_group']); } + + //tested + /** + * Remove member + * Remove a user from all groups + * @param int $user_id User id to remove from all groups + * @return bool Remove success/failure + */ + public function remove_member_from_all($user_id) { + $this->aauth_db->where('user_id', $user_id); + return $this->aauth_db->delete($this->config_vars['user_to_group']); + } //tested /** * Is member