Admins can only see single-chapter draft works, not multi-chapter drafts or draft chapters on posted works

Description

  1. Log in as a regular user

  2. Create a single-chapter draft work and make note of its URL

    1. Post > New Work

    2. Fill in required information

    3. Press "Preview"

    4. Press "Save Without Posting"

    5. Make a note of the URL of the draft work

    6. Create a multi-chapter draft work and make note of its URL

    7. Repeat the first 3 steps for creating a single-chapter draft work

    8. Follow "Add Chapter"

    9. Fill in required information

    10. Press "Preview"

    11. Press "Save Without Posting"

    12. Make a note of the URL of the draft work

  3. Create a posted work with a draft chapter and note the URL

    1. Post > New Work

    2. Fill in required information

    3. Press "Post Without Preview"

    4. Follow "Add Chapter"

    5. Fill in required information

    6. Press "Preview"

    7. Press "Save Without Posting"

    8. Make note of the URL (ideally for the draft chapter itself, e.g. https://test.archiveofourown.org/works/1070223/chapters/2139585 )

  4. Log in as admin

  5. Attempt to go to each of the URLs you noted

What happens
You can access the single chapter draft.

The multi-chapter draft redirects you to the homepage with a blue flash error that says, "Please log out of your admin account first!"

The URL for the draft chapter does the same redirect with flash error.

If you edit that URL down to just its work bit ( https://test.archiveofourown.org/works/1070223), it only shows the posted chapter.

What should happen
You should be able to see the multi-chapter draft and the draft chapter.

If you go to the dashboard for the draft's creator, you should also be able to see and access their Drafts page from the sidebar.

Environment

None

Status

Assignee

ticking instant

Reporter

Sarken

Roadmap

Admin
Works

Priority

Medium

Affects versions

Fix versions

Components

BackEnd

Difficulty

Medium

Required Access Level

Admin

Milestone

Internal 0.9
Configure