]> BookStack Code Mirror - bookstack/commit
Content Permissions API: Fixed param combination bug
authorDan Brown <redacted>
Tue, 20 Jun 2023 13:13:26 +0000 (14:13 +0100)
committerDan Brown <redacted>
Tue, 20 Jun 2023 13:13:26 +0000 (14:13 +0100)
commit41c3ed154b79a52e97c9c6c9fd3235b4bfe26113
tree1d7b24b8e1513cb3f1acc0004a7bb79839e5defa
parentf5396ecaf010a34c1a53d13793a5fea68089fdfe
Content Permissions API: Fixed param combination bug

Fixes issue where providing owner_id alongside certain
fallback_permissions would cause the owner change not to take affect,
due to bad variable shadowing.

For #4323
app/Entities/Tools/PermissionsUpdater.php
tests/Api/ContentPermissionsApiTest.php