Admin Roles: Restrict ability to delete, hide, or modify user creations (works, series, bookmarks, and external works)

Description

Only admins with superadmin or policy_and_abuse roles should

  • have the following options on a work and be able to use them: “Hide Work” or “Make Work Visible,” “Edit Tags and Language,” “Mark As Spam” or “Mark Not Spam”, and “Delete Work”

  • have the following options on all bookmark blurbs and work bookmark indexes (e.g. https://test.archiveofourown.org/works/609811/bookmarks) and be able to use them: “Hide Bookmark” or “Make Bookmark Visible” and “Delete Bookmark”

  • have the following options on external work bookmark blurbs and external work pages (e.g. https://test.archiveofourown.org/external_works/100) and be able to use them: “Hide External Work” or “Make External Work Visible”, “Edit External Work”, and “Delete External Work”

  • have the following options on series pages and be able to use them: “Hide Series” or “Make Series Visible” and “Delete Series”

    • Note: makes the options hard to click.

Admins without these roles should

  • not have any of those options

    • TODO: In the current branch, only the options on works are hidden.

  • be redirected and given an error message if they attempt to enter the URL for one of these pages or actions in their browser bar, e.g. https://test.archiveofourown.org/external_works/100/edit or https://test.archiveofourown.org/admin/user_creations/100?creation_type=ExternalWork

 

Environment

None

Assignee

elzj78 (Elz)

Reporter

elzj78 (Elz)

Roadmap

Admin

Priority

Medium

Affects versions

Fix versions

None

Components

BackEnd

Difficulty

Medium

Required Access Level

Admin

Epic Link

Milestone

Internal 0.9
Configure