Fixed user permission problems (hostmask level and so on)