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

something weird when banning models multiple times. #93

Open
Abdelhalim-Merabet opened this issue Apr 28, 2023 · 1 comment
Open

something weird when banning models multiple times. #93

Abdelhalim-Merabet opened this issue Apr 28, 2023 · 1 comment

Comments

@Abdelhalim-Merabet
Copy link

hello
I was trying your package
not sure if I did something wrong but when I Tinkered with a user and I banned him twice (for fun);
the Bans table updated for the number of bans (that's normal, I guess for history); but when I tried to unban him only the last ban got soft deleted on the Bans table, and the Banned_at column on Users table didn't update to Nulled.
so, I was stuck with a Banned User

steps to reproduce :

  • fresh Laravel install with your Package
  • tinker and create a user
  • ban him more than 1 time via $user->ban(); in Tinker always
  • unban Him with $user->unban();
  • he won't be..
@antonkomarev
Copy link
Member

antonkomarev commented Apr 28, 2023

@Abdelhalim-Merabet That looks strange, because unban iterate over all user bans.

Screenshot_2023-04-28-22-03-28-726_com.github.android.jpg

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

No branches or pull requests

2 participants