Browse Source

fix the user admin thing still trying to set the isAdmin field

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

6
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(

Loading…
Cancel
Save