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"); |
} |
} |