Browse Source

Added a function to remove member from all groups

develop
AnasTHH 10 years ago
parent
commit
e1dee38adc
  1. 13
      application/libraries/Aauth.php

13
application/libraries/Aauth.php

@ -1282,6 +1282,19 @@ class Aauth {
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_allgroups($user_id) {
$group_par = $this->get_group_id($group_par);
$this->aauth_db->where('user_id', $user_id);
return $this->aauth_db->delete($this->config_vars['user_to_group']);
}
//tested
/**
* Is member

Loading…
Cancel
Save