Browse Source

add resync button to the 'users' view. see #55

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
1bf2176870
  1. 3
      pyweb/mumble/views.py
  2. 7
      template/mumble/mumble.htm

3
pyweb/mumble/views.py

@ -201,6 +201,9 @@ def users( request, server ):
srv = get_object_or_404( Mumble, id=int(server) );
if "resync" in request.GET and request.GET['resync'] == "true":
srv.readUsersFromMurmur();
if not srv.isUserAdmin( request.user ):
return HttpResponse(
simplejson.dumps({ 'success': False, 'objects': [], 'errormsg': 'Access denied' }),

7
template/mumble/mumble.htm

@ -301,6 +301,13 @@
},
} );
}
}, {
text: '{% trans "Resync with Murmur" %}',
handler: function(){
userAdminStore.reload({
params: { 'resync': 'true' },
});
},
}],
plugins: [ adminColumn, deleteColumn ],
},

Loading…
Cancel
Save