Skip to content

NOW MANAGED ON CODEBERG

Fixed bad refactor in the permission service

Dan Brownc99653f0f279
diff --git a/app/Services/PermissionService.php b/app/Services/PermissionService.php
index 17c1b1285..218cb30a5 100644
--- a/app/Services/PermissionService.php
+++ b/app/Services/PermissionService.php
@@ -422,7 +422,7 @@ class PermissionService
*/
public function enforceBookRestrictions($query, $action = 'view')
{
- $this->enforceEntityRestrictions($query, $action);
+ return $this->enforceEntityRestrictions($query, $action);
}
/**