Skip to content

[Bug]: Not working with Filament Shield #116

@shovann-notebrains

Description

@shovann-notebrains

What happened?

During policy generation, the Email policy is being created by Shield, but it isn’t behaving as expected. Even after removing the permission, it still appears accessible.

The issue seems to be that the resource is using canAccess. Because of this, it’s not aligning properly with Shield’s permission checks.

Is there a recommended way to make this plugin work correctly with Shield?

How to reproduce the bug

After removing all permissions from Shield

Package Version

2.2

PHP Version

8.3

Laravel Version

12

Which operating systems does with happen with?

No response

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions