mirror of
https://github.com/unraid/api.git
synced 2026-01-15 13:10:01 -06:00
fix: ensure we only allow the current key to publish
This commit is contained in:
@@ -34,7 +34,7 @@ export const keyFile = () => {
|
||||
// Ensure this is a key file
|
||||
// @todo Check if varState is updated here if so for an exact match
|
||||
// we can check if the path is varState.data.regFile
|
||||
if (!fullPath.endsWith('.key')) {
|
||||
if (fullPath !== varState.data.regFile) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user