Skip to content

Commit

Permalink
Added a function to remove member from all groups
Browse files Browse the repository at this point in the history
  • Loading branch information
AnasTHH committed Nov 21, 2015
1 parent 4d7dc29 commit e1dee38
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,20 @@ public function remove_member($user_id, $group_par) {
$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_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
Expand Down

0 comments on commit e1dee38

Please sign in to comment.