Fixed possible bug in AccountSystem permission checker