Skip to content

Use Page::listable to restrict visibility of pages throughout admin #379

@Toutouwai

Description

@Toutouwai

Short description of the enhancement

You can hook Page::listable and set the event return to false to hide a page in ProcessPageList (from non-superusers). However, the page can still be discovered via:

  • Admin search (AJAX results)
  • Admin search (results page if user hits enter)
  • Listers
  • Maybe other places such as Page Reference fields?

It would be good if Page::listable could make a page invisible throughout the admin. Or if it's important to keep a targeted method just for ProcessPageList then introduce a new hookable method that controls visibility throughout the admin.

Why would the enhancement be useful to users?

The title or mere existence of a page might need to remain private from the current user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions