mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 06:24:23 +01:00
Fix issue with making admins & verification
This commit is contained in:
@@ -271,7 +271,6 @@ $(document).ready(function () {
|
|||||||
var elem = $(this).parent().parent().parent();
|
var elem = $(this).parent().parent().parent();
|
||||||
var id = elem.find('.team-id').text().trim();
|
var id = elem.find('.team-id').text().trim();
|
||||||
var admin = $(this).prop('checked');
|
var admin = $(this).prop('checked');
|
||||||
var nonce = $('#nonce').val();
|
|
||||||
console.log(admin);
|
console.log(admin);
|
||||||
|
|
||||||
$.post('{{ request.script_root }}/admin/team/' + id, {'admin': admin, 'nonce': nonce});
|
$.post('{{ request.script_root }}/admin/team/' + id, {'admin': admin, 'nonce': nonce});
|
||||||
@@ -281,7 +280,6 @@ $(document).ready(function () {
|
|||||||
var elem = $(this).parent().parent().parent();
|
var elem = $(this).parent().parent().parent();
|
||||||
var id = elem.find('.team-id').text().trim();
|
var id = elem.find('.team-id').text().trim();
|
||||||
var verified = $(this).prop('checked');
|
var verified = $(this).prop('checked');
|
||||||
var nonce = $('#nonce').val();
|
|
||||||
console.log(verified);
|
console.log(verified);
|
||||||
|
|
||||||
$.post('{{ request.script_root }}/admin/team/' + id, {'verified': verified, 'nonce': nonce});
|
$.post('{{ request.script_root }}/admin/team/' + id, {'verified': verified, 'nonce': nonce});
|
||||||
|
|||||||
Reference in New Issue
Block a user