Skip to content

Don't show the delete button when clicking "Select all matching" #3089

Closed
@cord

Description

@cord
  • Laravel Version: 7
  • Nova Version: 3.15
  • PHP Version: 7.4

Reposted from #322

Description:

The "Delete selected" option is shown when clicking "Select all matching" in the resource index, even when the user is actually not allowed to delete anything (see images below).
44802940-52bbad00-abbd-11e8-8a8e-5878dd111bca
44802961-5e0ed880-abbd-11e8-8f53-1fcccbc8c48e

Detailed steps to reproduce the issue on a fresh Nova installation:

Set up a Resource with disabling Delete:

    public function authorizedToDelete(Request $request)
    {
        return false;
    }

use the select drop down to reproduce the behaviour

Metadata

Metadata

Assignees

No one assigned

    Labels

    requestFeature Request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions