Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check login() method exists, punt to setUser() #12685

Merged
merged 2 commits into from
May 8, 2024

Conversation

cheesegrits
Copy link
Contributor

Description

As Discussed in Discord, in CSV import and export jobs use login() if the method is available in the guard, else punt to setUser().

Visual changes

No visual changes

Functional changes

  • Code style has been fixed by running the composer cs command.
  • Changes have been tested to not break existing functionality.
  • Documentation is up-to-date.

@zepfietje zepfietje added the bug Something isn't working label May 8, 2024
@zepfietje zepfietje added this to the v3 milestone May 8, 2024
@danharrin danharrin merged commit c1bb0a9 into filamentphp:3.x May 8, 2024
@devfrey
Copy link

devfrey commented May 13, 2024

Why does Filament interact with the guard inside a job?

Also, can you link the Discord discussion? I can't find it.

@danharrin
Copy link
Member

It was in a private channel. This PR is to undo a breaking change that was made a few weeks ago, we are removing login() altogether in v4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants