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

@ -1281,7 +1281,20 @@ 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_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 //tested
/** /**
* Is member * Is member

Loading…
Cancel
Save