#929 implement first half of multi tenancy with tenant_databases setting

This commit is contained in:
Oliver Gorwits
2022-09-24 19:01:05 +01:00
parent b391f83d60
commit 1d5f3ce316
71 changed files with 355 additions and 205 deletions

View File

@@ -27,11 +27,11 @@ get '/ajax/content/search/vlan' => require_login sub {
my $rs;
if ( $q =~ m/^\d+$/ ) {
$rs = schema('netdisco')->resultset('Device')
$rs = schema(vars->{'tenant'})->resultset('Device')
->carrying_vlan( { vlan => $q } );
}
else {
$rs = schema('netdisco')->resultset('Device')
$rs = schema(vars->{'tenant'})->resultset('Device')
->carrying_vlan_name( { name => $q } );
}