Ensuring user is enabled before it being rendered into the vpn.
This commit is contained in:
parent
f8711ebd02
commit
f6b153003b
@ -21,7 +21,7 @@ ListenPort = @{[$config->{vpnclients}{server_port}]}
|
||||
PrivateKey = @{[$config->{vpn}{privkey}]}
|
||||
EOF
|
||||
my $resultset = VPNManager::Schema->Schema->resultset('VPNUser');
|
||||
my @users = $resultset->search( {} );
|
||||
my @users = $resultset->search( { -bool => 'is_enabled' } );
|
||||
|
||||
for my $user (@users) {
|
||||
next if !$user->is_enabled;
|
||||
|
Loading…
Reference in New Issue
Block a user