Skip to content

Customizing the authorization doesn't seem to work #468

@maxxscho

Description

@maxxscho

Pulse Version

1.4

Laravel Version

12.39.0

PHP Version

8.4.5

Livewire Version

3.7.0

Database Driver & Version

MySQL 8.4.4

Description

I've installed Pulse and tried to customize the authorization like described in the docs. As soon as I'm defining the gate viewPulse Pulse isn't accessible anymore - I'm getting 403 error.

It doesn't matter, which logic is in the gate. Things like this doesn't work:

Gate::define('viewPulse', function ($user) {
    return true;
});

This happens on my application and also on a fresh installed Laravel.

Steps To Reproduce

  • Install Laravel
  • Install Pulse
  • Customize authorization like described in the docs

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