]> BookStack Code Mirror - bookstack/commit
Added caching to the loading of system roles
authorDan Brown <redacted>
Thu, 23 Feb 2023 23:01:03 +0000 (23:01 +0000)
committerDan Brown <redacted>
Thu, 23 Feb 2023 23:01:03 +0000 (23:01 +0000)
commit8abb41abbd5833217823890da936a29a129bd046
tree952782539bf3351071a5867450447e7d1143a96c
parenta031edec16234a2e62a01ba3855107e2c5f763b7
Added caching to the loading of system roles

Admin system role was being loaded for each permission check performed.
This caches the fetching for the request lifetime.
app/Auth/Role.php
Morty Proxy This is a proxified and sanitized view of the page, visit original site.