]> BookStack Code Mirror - bookstack/commit
Implemented alternate approach to current joint_permissions
authorDan Brown <redacted>
Tue, 24 Jan 2023 14:55:34 +0000 (14:55 +0000)
committerDan Brown <redacted>
Tue, 24 Jan 2023 14:55:34 +0000 (14:55 +0000)
commit2d1f1abce4a6372b6be1833d88354149cbc7e40c
treedf70fda3fcd308ee175294f6575260ce45918add
parent7d74575eb86d9049cd420af6f0f1218b955dcfd4
Implemented alternate approach to current joint_permissions

Is a tweak upon the existing approach, mainly to store and query role
permission access in a way that allows muli-level states that may
override eachother. These states are represented in the new PermissionStatus
class.

This also simplifies how own permissions are stored and queried, to be
part of a single column.
app/Actions/Activity.php
app/Actions/Favourite.php
app/Actions/Tag.php
app/Actions/View.php
app/Auth/Permissions/JointPermissionBuilder.php
app/Auth/Permissions/PermissionApplicator.php
app/Auth/Permissions/PermissionStatus.php [new file with mode: 0644]
app/References/Reference.php
app/References/ReferenceFetcher.php
database/migrations/2023_01_24_104625_refactor_joint_permissions_storage.php [new file with mode: 0644]