|
|
@ -1291,7 +1291,19 @@ class Aauth { |
|
|
|
$this->aauth_db->where('group_id', $group_par); |
|
|
|
$this->aauth_db->where('group_id', $group_par); |
|
|
|
return $this->aauth_db->delete($this->config_vars['user_to_group']); |
|
|
|
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 |
|
|
|
//tested |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Is member |
|
|
|
* Is member |
|
|
|