Browse Source

Merge pull request #95 from AnasTHH/master

Added a function to remove member from all groups
develop
Emre Akay 9 years ago
parent
commit
e46962e6ae
  1. 12
      application/libraries/Aauth.php

12
application/libraries/Aauth.php

@ -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

Loading…
Cancel
Save