]> BookStack Code Mirror - bookstack/commit
Shared entity permission logic across both query methods
authorDan Brown <redacted>
Mon, 23 Jan 2023 15:09:03 +0000 (15:09 +0000)
committerDan Brown <redacted>
Mon, 23 Jan 2023 15:09:03 +0000 (15:09 +0000)
commit91e613fe606777c0b036a2cfada94092b771dc22
tree4909de5a762fd68014b806b3ed884235e500d48b
parentf3f2a0c1d55681bbbf141f051b073a5b39100a51
Shared entity permission logic across both query methods

The runtime userCan() and the JointPermissionBuilder now share much of
the same logic for handling entity permission resolution.
app/Auth/Permissions/EntityPermissionEvaluator.php
app/Auth/Permissions/JointPermissionBuilder.php
app/Auth/Permissions/MassEntityPermissionEvaluator.php [new file with mode: 0644]
app/Auth/Permissions/PermissionApplicator.php
app/Auth/Permissions/SimpleEntityData.php