BookStack/app/Permissions
Dan Brown 02d94c8798
Permissions: Updated generation querying to be more efficient
Query of existing entity permissions during view permission generation
could cause timeouts or SQL placeholder limits due to massive whereOr
query generation, where an "or where" clause would be created for each
entity type/id combo involved, which could be all within 20 books.

This updates the query handling to use a query per type involved, with
no "or where"s, and to be chunked at large entity counts.

Also tweaked role-specific permission regen to chunk books at
half-previous rate to prevent such a large scope being involved on each
chunk.

For #4695
2023-12-23 13:35:57 +00:00
..
Models Played around with a new app structure 2023-05-17 17:56:55 +01:00
ContentPermissionApiController.php API Docs: Allowed multi-paragraph descriptions 2023-06-20 23:44:39 +01:00
EntityPermissionEvaluator.php Permissions: Updated generation querying to be more efficient 2023-12-23 13:35:57 +00:00
JointPermissionBuilder.php Permissions: Updated generation querying to be more efficient 2023-12-23 13:35:57 +00:00
MassEntityPermissionEvaluator.php Played around with a new app structure 2023-05-17 17:56:55 +01:00
PermissionApplicator.php PHPStan: Fixed larastan loading and address some level2 issues 2023-12-10 14:58:05 +00:00
PermissionFormData.php Played around with a new app structure 2023-05-17 17:56:55 +01:00
PermissionsController.php Cleaned up namespacing in routes 2023-05-18 20:57:05 +01:00
PermissionsRepo.php Notifications: Added role receive-notifications permission 2023-07-25 17:59:04 +01:00
PermissionStatus.php Played around with a new app structure 2023-05-17 17:56:55 +01:00
SimpleEntityData.php Played around with a new app structure 2023-05-17 17:56:55 +01:00