As designed Bug while banning with warning points

SAS1024

Active member
Hello.
I found bug while banning with Warning Points.

We have warning action with ban user when his Warning Points will be X. When we give X Warning Points to user ban action will be successfull, but in MySQL table `xf_user_ban` column `ban_user_id` will be zero, not moderator user id.

P.S. sorry for my bad english, it's not my first language.
 
This is as designed.

It technically wouldn't be correct to log the user_id of the banning user, as the ban wasn't explicitly issued by a user, instead it was automatically triggered by the warning points action.

Bans issued in this way would be marked with a user_id of 0 and triggered value being 1.
 
Thank you for reply.
I checked now, but triggered value (it's a `triggered` field in xf_user_ban table, isn't it?) not 1, it's 0 too.
 
Back
Top Bottom