feat: add nonce for js script

This commit is contained in:
yannis 2025-07-07 17:05:27 +02:00
parent 39a6cadf11
commit 256eea24ea

View file

@ -957,7 +957,7 @@ if ($action == 'create') {
print '</table>';
print '</div>';
print '<script>';
print '<script nonce="'.getNonce().'">';
print '$(".tdforbreakperms:not(.alink)").on("click", function(){
console.log("Click on tdforbreakperms");
moduletohide = $(this).data("hide-perms");