mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-22 02:25:59 +02:00
Small security update
This commit is contained in:
parent
25c736b68b
commit
86f2096d1f
3 changed files with 7 additions and 6 deletions
|
@ -2292,7 +2292,7 @@ class DomainsController extends Controller
|
|||
}
|
||||
|
||||
return view($response,'admin/domains/listTransfers.twig', [
|
||||
'clid' => $clid
|
||||
'clid' => base64_encode($clid)
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
@ -54,8 +54,8 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<div id="transferTable"></div><input type="hidden" id="clid" value="{{ clid }}">
|
||||
<div class="table-responsive" data-ref="{{ clid }}">
|
||||
<div id="transferTable"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -18,7 +18,8 @@
|
|||
var actionButtons = '';
|
||||
|
||||
var hasPendingStatus = rowData.trstatus && rowData.trstatus.includes('pending');
|
||||
var clidValue = document.getElementById('clid').value;
|
||||
const tableResponsive = document.querySelector('.table-responsive');
|
||||
const clidValue = atob(tableResponsive.dataset.ref);
|
||||
|
||||
if (hasPendingStatus && clidValue === '0') {
|
||||
actionButtons += `<a class="btn btn-outline-success btn-icon approve-btn" id="approve-btn" href="javascript:void(0);" data-approve-url="transfer/approve/${cell.getRow().getData().name}" title="{{ __('Approve Transfer') }}"><svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 11l3 3l8 -8" /><path d="M20 12v6a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h9" /></svg></a> `;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue