Skip to content

"Add New" flyout/dropdown menu wrongly includes template that user lacks "create" permission for #1929

@Toutouwai

Description

@Toutouwai

Short description of the issue

I have a template "location" that is allowed under parents with the "region" template.

2024-05-23_133550

The "editor" role does not have the "create" permission for the location template.

2024-05-23_133222

But users with this role see "Location" in the dropdown and flyout menus for "Add New"

2024-05-23_133140

2024-05-23_133327

If they click either of these menu items there are no allowed parent pages.

2024-05-23_133341

Expected behavior

Users without the create permission for a template shouldn't see the option to add a new page with that template in "Add New".

Setup/Environment

  • ProcessWire version: 3.0.239

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions