From bf74e92130adbafc0f475c49cecc78e41774570d Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 13 Mar 2022 15:44:36 +1100 Subject: [PATCH] Fixes for permissions on list response --- app/Http/Controllers/BaseController.php | 2 +- resources/views/pdf-designs/playful.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/BaseController.php b/app/Http/Controllers/BaseController.php index a67d761953..55a9354a43 100644 --- a/app/Http/Controllers/BaseController.php +++ b/app/Http/Controllers/BaseController.php @@ -622,7 +622,7 @@ class BaseController extends Controller // 10-01-2022 need to ensure we snake case properly here to ensure permissions work as expected // if (auth()->user() && ! auth()->user()->hasPermission('view_'.lcfirst(class_basename($this->entity_type)))) { - if (auth()->user() && ! auth()->user()->hasPermission('view'.lcfirst(class_basename(Str::snake($this->entity_type))))) { + if (auth()->user() && ! auth()->user()->hasPermission('view_'.lcfirst(class_basename(Str::snake($this->entity_type))))) { $query->where('user_id', '=', auth()->user()->id); } diff --git a/resources/views/pdf-designs/playful.html b/resources/views/pdf-designs/playful.html index 67af0330b2..587befe088 100644 --- a/resources/views/pdf-designs/playful.html +++ b/resources/views/pdf-designs/playful.html @@ -11,7 +11,7 @@ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-family: $font_name, Helvetica, sans-serif; - font-size: "$font_size"; + font-size: $font_size; zoom: 80%; }