From: Vincent Vanwaelscappel Date: Fri, 24 Nov 2023 16:51:56 +0000 (+0100) Subject: wait #6515 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=8460ae3793be03832eeee76adadb667b24f175c2;p=fluidbook-toolbox.git wait #6515 @0.5 --- diff --git a/app/Models/FluidbookPublication.php b/app/Models/FluidbookPublication.php index 446b49ffc..4edd72753 100644 --- a/app/Models/FluidbookPublication.php +++ b/app/Models/FluidbookPublication.php @@ -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); }); } }