BookStack/database
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
..
factories Input WYSIWYG: Updated tests, Added simple html limiting 2023-12-19 15:10:29 +00:00
migrations Input WYSIWYG: Added description_html field, added store logic 2023-12-17 15:02:15 +00:00
seeders Permissions: Updated generation querying to be more efficient 2023-12-23 13:35:57 +00:00
.gitignore Initial commit 2015-07-12 20:01:42 +01:00