From 7bc2ca512a7bc7178cf0f98b04880151ab813fab Mon Sep 17 00:00:00 2001 From: Dillon Date: Sat, 7 Oct 2023 07:33:51 +0800 Subject: [PATCH] Function for admin to export feedback data --- .../Modules/Exports/Standards/Rules/CanExportFeedback.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Modules/Exports/Standards/Rules/CanExportFeedback.php b/app/Classes/Modules/Exports/Standards/Rules/CanExportFeedback.php index 5d8b2ec0..2b923a55 100644 --- a/app/Classes/Modules/Exports/Standards/Rules/CanExportFeedback.php +++ b/app/Classes/Modules/Exports/Standards/Rules/CanExportFeedback.php @@ -12,7 +12,7 @@ class CanExportFeedback extends AbstractRule /** * @return bool */ - protected function authorized(): bool + protected function authorized($object): bool { $roleToCheck = Auth()->user()->type; if (in_array($roleToCheck, RoleTypes::ADMIN_ROLES)) {