Browse Source

if linking accounts, don't update Murmur. see #56

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
f3405dcbc7
  1. 6
      pyweb/mumble/views.py

6
pyweb/mumble/views.py

@ -103,12 +103,10 @@ def show( request, server ):
regform = unregged_user_form( request.POST ); regform = unregged_user_form( request.POST );
regform.server = srv; regform.server = srv;
if regform.is_valid(): if regform.is_valid():
# TODO: Check if LinkAcc is True, if yes:
# find MumbleUser with mumbleid=regform.mumbleid,
# if not exists create, save().
model = regform.save( commit=False ); model = regform.save( commit=False );
model.owner = request.user; model.owner = request.user;
model.save();
# If we're linking accounts, the change is local only.
model.save( dontConfigureMurmur=( "linkacc" in regform.data ) );
return HttpResponseRedirect( reverse( show, kwargs={ 'server': int(server), } ) ); return HttpResponseRedirect( reverse( show, kwargs={ 'server': int(server), } ) );
else: else:
displayTab = 1; displayTab = 1;

Loading…
Cancel
Save