[RSS Feed/News] $entity->isChanged('is_banned') not working as expected

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I build a static function in Listener where i ask if $entity->isChanged(['user_group_id', 'secondary_group_ids']) and $entity->isStateChanged('user_state', 'disabled') === 'enter', now i just want to know if a user is set banned.

How can i get this?

I tried $entity->isChanged('is_banned') and $entity->isStateChanged('is_banned', '1') === 'enter' but it doesn't work.

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom