Thread:Project:Support desk/Aprrove account before they are able to login/reply (3)

User groups permission doesn´t prevent anyone from logging in. I would like to prevent them from doing that aswell. I think I´m in my way here. I have managed to create an extension och I think the SQL statement is working. Alltough what I´m not able to do is fetch approved_account so that I could place it in a if statement.