diff --git a/views/assets/src/components/common/pm-file.vue b/views/assets/src/components/common/pm-file.vue index 254e51a2..5fd73114 100644 --- a/views/assets/src/components/common/pm-file.vue +++ b/views/assets/src/components/common/pm-file.vue @@ -88,7 +88,7 @@ export default { const headers = { "Content-Type": "application/json", - "X-WP-Nonce": PM_Global_Vars.permission, + "X-WP-Nonce": PM_Vars.permission, }; const response = await fetch(permissionUrl, { diff --git a/views/assets/src/components/project-files/files.vue b/views/assets/src/components/project-files/files.vue index 553fbdaf..dfe75362 100644 --- a/views/assets/src/components/project-files/files.vue +++ b/views/assets/src/components/project-files/files.vue @@ -161,7 +161,7 @@ try { const headers = { "Content-Type": "application/json", - "X-WP-Nonce": PM_Global_Vars.permission, + "X-WP-Nonce": PM_Vars.permission, }; const response = await fetch(permissionUrl, {