synced with master

This commit is contained in:
Gani Georgiev
2024-12-19 11:44:38 +02:00
47 changed files with 280 additions and 219 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"