Added back the allowed versions list #1

Merged
Lncvrt merged 2 commits from (deleted):puppet-patch-1 into main 2026-02-24 21:45:17 +00:00
Showing only changes of commit 8ecfbf5f39 - Show all commits
+1 -1
View File
@@ -22,7 +22,7 @@ export const handler = async ({ request, set }: Context) => {
permissions = "client"
}
return permissions + ';1.1.0'
return permissions + ';' + allowedVersions[allowedVersions.length - 1]
Outdated
Review

Could you make this instead of hard coding that value, that it will just get the last entry in the array?

Could you make this instead of hard coding that value, that it will just get the last entry in the array?
Outdated
Review

Also I do know that would be changed each time, but I would rather it not be duplicated.

Also I do know that would be changed each time, but I would rather it not be duplicated.
}
else if (isLatestVersion(clientVersion)) return '1'
else if (isBetaVersion(clientVersion)) return '4'