[#6137] renew the superuser file token cache when clicking on the thumb preview or download link

This commit is contained in:
Gani Georgiev
2024-12-18 14:17:34 +02:00
parent ef0170cf0b
commit 803941705c
34 changed files with 188 additions and 152 deletions
-1
View File
@@ -68,7 +68,6 @@ PocketBase.prototype.error = function (err, notify = true, defaultMsg = "") {
PocketBase.prototype.getSuperuserFileToken = async function (collectionId = "") {
let needToken = true;
if (collectionId) {
const protectedCollections = get(protectedFilesCollectionsCache);
needToken = typeof protectedCollections[collectionId] !== "undefined"