After adding the advanced action "Change the author of content...", it is not possible to change the author from the anonymous user to anything even if the current user has the administer content permission.
Steps to reproduce:
1) Assign some content to the anonymous user (or cancel an account and assign content to uid 0)
2) create an advanced action "Change the author of content..."
3) try to use that action at /admin/content as an administrator
Because the administrator does not have access to edit user 0, access is forbidden. In other node access functions, the following is used
if ($account->hasPermission('administer content types')) {
return AccessResult::allowed()->cachePerPermissions();
}
Adding patch to include this check on AssignOwnerNode.php
Comment | File | Size | Author |
---|---|---|---|
allow_administer_content.patch | 1.01 KB | el1_1el | |
Comments
Comment #3
el1_1el CreditAttribution: el1_1el commentedtest failures on 8.3 seem unrelated. (?)
Comment #7
borisson_This needs a test so we don't regress on this behavior.
Comment #17
DanielVezaThanks for raising an issue!
I'm closing this as a duplicate of #3101710: Allow user to change author if they have the edit access , that issue has been updated more recently and has a patch with tests.