Skip to content

Commit

Permalink
bug fixed in delete_group()
Browse files Browse the repository at this point in the history
  • Loading branch information
Emre Akay committed Jun 27, 2014
1 parent 270dc68 commit 20aab13
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,11 @@ public function update_group($group_id, $group_name) {
*/
public function delete_group($group_id) {

// bug fixed
// now users are deleted from user_to_group table
$this->CI->db->where('group_id', $group_id);
$this->CI->db->delete($this->config_vars['user_to_group']);

$this->CI->db->where('id', $group_id);
return $this->CI->db->delete($this->config_vars['groups']);
}
Expand Down Expand Up @@ -1535,7 +1540,7 @@ public function get_infos($divider = '<br />'){
* captcha (hmm bi bakalım)
* mail fonksiyonları imtihanı
* stacoverflow
* login e ip aderesi de eklemek lazım
* tamam // login e ip aderesi de eklemek lazım
* list_users da grup_par verilirse ve adamın birden fazla grubu varsa nolurkun? // bi denemek lazım belki distinct ile düzelir
* eğer grup silinmişse kullanıcıları da o gruptan sil (fire)
* ismember la is admine 2. parametre olarak user id ekle
Expand Down

0 comments on commit 20aab13

Please sign in to comment.