When we cancelled a user account using the Delete the account and make its content belong to the Anonymous user
method, we found that the author was set to Anonymous
for the pages they were set as the Author
, as expected. The problem is that many pages that were set to Draft
were then updated to have their Author
set to Anonymous
and published
, which is not a desired outcome. These drafts were never published and always kept in that state.
We have a view that pulls all pages that are published and content type = Basic Page
. This started to pull in all the draft
pages because they were set to published
after the user account was cancelled.
How can we cancel an account without publishing pages that were are set to Draft
moderation state?
Steps to reproduce:
- Create 10 draft
Basic Pages
(do not publish) where theAuthor
is set tocontent admin
- Cancel the user account for
content admin
by usingDelete the account and make its content belong to the Anonymous user
method. - Under
/admin/content
, observe the pages are now inpublished
state withAuthor
set toAnonymous
Current modules being used for revision:
workbench
workbench_moderation