Commit 51e1e7dd authored by Francesc Guasch's avatar Francesc Guasch
Browse files

wip(backend): remove access restrictions if known domain

issue #916
parent 24829f7b
......@@ -1171,6 +1171,11 @@ sub _remove_domain_cascade($self,$user, $cascade = 1) {
my $domain = $vm->search_domain($domain_name) or next;
$domain->remove($user, $cascade);
}
return if !$self->{_data}->{id};
my $sth = $$CONNECTOR->dbh->prepare("DELETE FROM access_ldap_attribute"
." WHERE id_domain=?");
$sth->execute($self->id);
$sth->finish;
}
sub _remove_domain_db {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment