Fixed The only administrator can delete their own account

Affected version

Jeremy P

XenForo developer
Staff member
While administrators are prevented from removing the only/their own administrator record, nothing prevents them from deleting their own account entirely. This can lead to a situation where there are no administrators at all, which I believe can only be rectified through direct database queries since the superAdmins configuration option was removed from XF2.

Administrators should probably be restricted from removing their own accounts.

XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.1.7).

Change log:
Prevent users from deleting their own accounts
There may be a delay before changes are rolled out to the XenForo Community.