add config option for guest registration, make guest registration respect allow_registration

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2023-12-21 20:44:58 -05:00 committed by June
parent f20beae8dc
commit b0fdc1351b
3 changed files with 22 additions and 0 deletions

View file

@ -295,6 +295,10 @@ impl Service {
self.config.allow_registration
}
pub fn allow_guest_registration(&self) -> bool {
self.config.allow_guest_registration
}
pub fn allow_encryption(&self) -> bool {
self.config.allow_encryption
}