]> BookStack Code Mirror - bookstack/commit
Added check of owner field for manage-permissions-own
authorDan Brown <redacted>
Mon, 4 Jan 2021 18:07:39 +0000 (18:07 +0000)
committerDan Brown <redacted>
Mon, 4 Jan 2021 18:07:39 +0000 (18:07 +0000)
commitbbfb330b921496c24bda1f821c48f97782f90232
treeda2cd0965adf9728441c339be99e8772e3271b1c
parent20729a618f7d8b5c792220deab58336cc8141ce6
Added check of owner field for manage-permissions-own

This permission was still checking based on created-by.
Updated testing to specifically check the owner since the tests
were passing by the fact of matching creator and owner.

Fixes #2445
app/Auth/Permissions/PermissionService.php
tests/Permissions/RolesTest.php
Morty Proxy This is a proxified and sanitized view of the page, visit original site.