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

[4.x] Fix bug in deleting users in the CP controller #9677

Merged

Conversation

ryanmitchell
Copy link
Contributor

Fix a bug in the destroy method of the UsersController, it was trying to get $user twice so the second call was throwing a stache error as its no longer a string.

@jasonvarga
Copy link
Member

Removing this is correct, but how were you actually getting an error to happen?

@ryanmitchell
Copy link
Contributor Author

Through the 'api' 😄

@jasonvarga
Copy link
Member

Gotcha. This method isn't even used anymore since we moved the "delete" dropdown item to an action. We'll remove this completely in v5.

@jasonvarga jasonvarga merged commit 442293a into statamic:4.x Mar 7, 2024
19 checks passed
@ryanmitchell ryanmitchell deleted the fix/deleting-in-users-cp-controller branch March 7, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants