Commit 58785eee authored by Francesc Guasch's avatar Francesc Guasch
Browse files

refactor(auth): ignore missing groups when checking access

parent 1f955d4a
......@@ -422,6 +422,10 @@ sub _load_allowed_groups($self) {
next unless $self->is_external && $self->external_auth eq 'ldap';
if (!Ravada::Auth::LDAP::search_group(name => $name)) {
next;
}
$self->{_allowed}->{$id_domain} = 1
if Ravada::Auth::LDAP::is_member($self->ldap_entry, $name);
}
......
......@@ -260,7 +260,7 @@ sub _check_html_lint($url, $content, $option = {}) {
for my $error ( $lint->errors() ) {
next if $error->errtext =~ /Entity .*is unknown/;
next if $option->{internal} && $error->errtext =~ /(body|head|html|title).*required/;
if ( $error->errtext =~ /Unknown element <(footer|header|nav)/
if ( $error->errtext =~ /Unknown element <(footer|header|nav|ldap-groups)/
|| $error->errtext =~ /Entity && is unknown/
|| $error->errtext =~ /should be written as/
|| $error->errtext =~ /Unknown attribute.*%/
......@@ -404,7 +404,7 @@ sub test_admin_can_do_anything($t, $base) {
########################################################################################
$ENV{MOJO_MODE} = 'devel';
$ENV{MOJO_MODE} = 'development';
init('/etc/ravada.conf',0);
my $connector = rvd_back->connector;
like($connector->{driver} , qr/mysql/i) or BAIL_OUT;
......
Markdown is supported
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