isAdmin() error on registration
|Reported by:||ismayil.khayredinov||Owned by:|
I am building an alternative user validation functionality, but use of isAdmin() method in actions/register.php causes a fatal error. I am registering an event handler that disables the registered user depending on certain criteria.
It would be good to have the code check to see if the entity is still enabled before calling isAdmin().