]> BookStack Code Mirror - bookstack/commitdiff
Fixed bad refactor in the permission service
authorDan Brown <redacted>
Fri, 6 May 2016 19:44:07 +0000 (20:44 +0100)
committerDan Brown <redacted>
Fri, 6 May 2016 19:44:07 +0000 (20:44 +0100)
app/Services/PermissionService.php

index 17c1b12858a77ab9b98393afb61d7f307665e520..218cb30a578f7483bdde8ea61cf29fba7d959dd7 100644 (file)
@@ -422,7 +422,7 @@ class PermissionService
      */
     public function enforceBookRestrictions($query, $action = 'view')
     {
-        $this->enforceEntityRestrictions($query, $action);
+        return $this->enforceEntityRestrictions($query, $action);
     }
 
     /**
Morty Proxy This is a proxified and sanitized view of the page, visit original site.