|
@ -107,10 +107,13 @@ def show( request, server ): |
|
|
}, context_instance = RequestContext(request) ) |
|
|
}, context_instance = RequestContext(request) ) |
|
|
|
|
|
|
|
|
isAdmin = srv.isUserAdmin( request.user ) |
|
|
isAdmin = srv.isUserAdmin( request.user ) |
|
|
|
|
|
if request.user.is_authenticated(): |
|
|
try: |
|
|
try: |
|
|
user = MumbleUser.objects.get( server=srv, owner=request.user ) |
|
|
user = MumbleUser.objects.get( server=srv, owner=request.user ) |
|
|
except MumbleUser.DoesNotExist: |
|
|
except MumbleUser.DoesNotExist: |
|
|
user = None |
|
|
user = None |
|
|
|
|
|
else: |
|
|
|
|
|
user = None |
|
|
|
|
|
|
|
|
from mumble.forms import EXT_FORMS_PROVIDER, MumbleUserPasswordForm, MumbleUserLinkForm, MumbleUserForm |
|
|
from mumble.forms import EXT_FORMS_PROVIDER, MumbleUserPasswordForm, MumbleUserLinkForm, MumbleUserForm |
|
|
|
|
|
|
|
@ -133,6 +136,7 @@ def show( request, server ): |
|
|
'RegForm': regformname, |
|
|
'RegForm': regformname, |
|
|
'MumbleActive': True, |
|
|
'MumbleActive': True, |
|
|
'MumbleAccount':user, |
|
|
'MumbleAccount':user, |
|
|
|
|
|
'IsAdmin': isAdmin, |
|
|
}, context_instance = RequestContext(request) ) |
|
|
}, context_instance = RequestContext(request) ) |
|
|
|
|
|
|
|
|
def mobile_show( request, server ): |
|
|
def mobile_show( request, server ): |
|
|