]> BookStack Code Mirror - bookstack/commit
Continued removal of joint permission non-view queries
authorDan Brown <redacted>
Sat, 16 Jul 2022 12:17:08 +0000 (13:17 +0100)
committerDan Brown <redacted>
Sat, 16 Jul 2022 12:17:08 +0000 (13:17 +0100)
commit1d875ccfb7c62854c9c3253a0d83b39310fefbf8
tree1ca1245bffa4afab577776863209af11a0a77d64
parent4fb85a9a5cd75f1f0a0f605a916d4c3a746ee672
Continued removal of joint permission non-view queries

Cleaned up PermissionApplicator to remove old cache system which was
hardly ever actuall caching anything since it was reset after each
public method run.

Changed the scope of 'userCanOnAny' to just check entity permissions,
and added protections of action scope creep, in case a role permission
action was passed by mistake.
app/Auth/Permissions/PermissionApplicator.php
app/Entities/Models/Entity.php
app/Entities/Queries/Popular.php
app/Entities/Queries/RecentlyViewed.php
app/Entities/Queries/TopFavourites.php
app/Http/Controllers/BookshelfController.php
app/helpers.php
resources/views/chapters/show.blade.php
resources/views/pages/show.blade.php