Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
51e1e7dd
Commit
51e1e7dd
authored
Nov 05, 2018
by
Francesc Guasch
Browse files
wip(backend): remove access restrictions if known domain
issue #916
parent
24829f7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada/Domain.pm
View file @
51e1e7dd
...
...
@@ -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
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment