You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found the following some problem as described below:
Please take a look
public function delete_perm($perm_par) {
...........
// deletes from perm_to_user table
$this->aauth_db->where('perm_id', $perm_id);
$this->aauth_db->delete($this->config_vars['perm_to_group']);
.........
}
should be
public function delete_perm($perm_par) {
...........
// deletes from perm_to_user table
$this->aauth_db->where('perm_id', $perm_id);
$this->aauth_db->delete($this->config_vars['perm_to_user']);
.........
}
and in the another delete_group function(), we should add delete perms from perm_to_group table
public function delete_group($group_par) {
// now users are deleted from user_to_group table
$this->aauth_db->where('group_id', $group_id);
$this->aauth_db->delete($this->config_vars['user_to_group']);
// delete permission from perm_to_group table
// STARTS
// now perms are deleted from perm_to_group table
$this->aauth_db->where('group_id', $group_id);
$this->aauth_db->delete($this->config_vars['perm_to_group']);
// ENDS
$this->aauth_db->where('id', $group_id);
return $this->aauth_db->delete($this->config_vars['groups']);
}
Thank you !!!!
The text was updated successfully, but these errors were encountered:
Hello,
I found the following some problem as described below:
Please take a look
should be
and in the another delete_group function(), we should add delete perms from perm_to_group table
Thank you !!!!
The text was updated successfully, but these errors were encountered: