]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6515 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 24 Nov 2023 16:51:56 +0000 (17:51 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 24 Nov 2023 16:51:56 +0000 (17:51 +0100)
app/Models/FluidbookPublication.php

index 446b49ffcfb0bf9d01e95000d08a8f56546dcf91..4edd72753d210177771d9d8dd1f80fbf27583aac 100644 (file)
@@ -1152,8 +1152,8 @@ class FluidbookPublication extends ToolboxStatusModel
 
     public static function getProtectedPath($id, $path)
     {
-        return cache()->tags([FluidbookPublication::class])->rememberForever("fluidbook_protectedpath_" . $id . '_' . $path, function () use ($id, $path) {
-            return FluidbookPublication::withoutGlobalScopes()->find($id)->protected_path($id);
+        return cache()->tags([FluidbookPublication::class])->rememberForever("fluidbook_protected_path_" . $id . '_' . $path, function () use ($id, $path) {
+            return FluidbookPublication::withoutGlobalScopes()->find($id)->protected_path($path);
         });
     }
 }