1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

As Designed Bug while banning with warning points

Discussion in 'Resolved Bug Reports' started by SAS1024, Jun 16, 2015.

  1. SAS1024

    SAS1024 Member

    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.
  2. Chris D

    Chris D XenForo Developer Staff Member

    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.
    SAS1024 likes this.
  3. SAS1024

    SAS1024 Member

    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.

Share This Page