Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 1044 → Rev 1061

/hostadmiral/trunk/src/ak/hostadmiral/core/model/UserValidatorAtDomain.java
11,8 → 11,17
public void validateUser(User editor, User user)
throws ModelException
{
// superuser
if(editor.isSuperuser()) return;
 
// name not changed
if(user.getOrigin() != null && user.getOrigin().getLogin() != null
&& user.getLogin().equals(user.getOrigin().getLogin()))
{
return;
}
 
// go throug all domains
Collection domains = InetDomainManager.getInstance().listInetDomains(editor);
for(Iterator i = domains.iterator(); i.hasNext(); ) {
InetDomain domain = (InetDomain)i.next();
21,6 → 30,7
return;
}
 
// nothing found
throw new ModelUserException("ak.hostadmiral.core.uservalidator.atdomain.login.wrong");
}
}