mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-15 10:38:14 +02:00
[#6137] renew the superuser file token cache when clicking on the thumb preview or download link
This commit is contained in:
1 parent
ef0170cf0b
commit
803941705c
34 files changed
+188
-152
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user