Function for admin to export feedback data

This commit is contained in:
Dillon
2023-10-07 07:33:51 +08:00
parent b76e0ebeef
commit 7bc2ca512a
@@ -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)) {