mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
mumble: Don't set the root channel name unless it is changed
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
f8b4aa9d6f
commit
c772534a35
@ -26,6 +26,7 @@ class MumbleAppView(AppView):
|
|||||||
|
|
||||||
def form_valid(self, form):
|
def form_valid(self, form):
|
||||||
"""Apply form changes."""
|
"""Apply form changes."""
|
||||||
|
old_config = self.get_initial()
|
||||||
new_config = form.cleaned_data
|
new_config = form.cleaned_data
|
||||||
|
|
||||||
if mumble.get_domain() != new_config['domain']:
|
if mumble.get_domain() != new_config['domain']:
|
||||||
@ -45,7 +46,7 @@ class MumbleAppView(AppView):
|
|||||||
messages.success(self.request, _('Join password changed'))
|
messages.success(self.request, _('Join password changed'))
|
||||||
|
|
||||||
name = new_config.get('root_channel_name')
|
name = new_config.get('root_channel_name')
|
||||||
if name:
|
if old_config['root_channel_name'] != new_config['root_channel_name']:
|
||||||
privileged.change_root_channel_name(name)
|
privileged.change_root_channel_name(name)
|
||||||
messages.success(self.request, _('Root channel name changed.'))
|
messages.success(self.request, _('Root channel name changed.'))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user