From 2d8d2f39e53812db2308b9e629858f380d699938 Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Sun, 21 Feb 2010 18:53:12 +0100 Subject: [PATCH] fix the user admin thing still trying to set the isAdmin field --- pyweb/mumble/views.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pyweb/mumble/views.py b/pyweb/mumble/views.py index 32f3bcf..2837fde 100644 --- a/pyweb/mumble/views.py +++ b/pyweb/mumble/views.py @@ -278,12 +278,10 @@ def users( request, server ): mu.name = record['name']; mu.password = record['password']; - mu.isAdmin = record['admin']; - if record['owner']: mu.owner = User.objects.get( id=int(record['owner']) ); - mu.save(); + mu.aclAdmin = record['admin']; users = []; for mu in srv.mumbleuser_set.all(): @@ -296,7 +294,7 @@ def users( request, server ): 'name': mu.name, 'password': None, 'owner': owner, - 'admin': mu.getAdmin(), + 'admin': mu.aclAdmin, } ); return HttpResponse(