subdomains to pacdomain are not allowed

This commit is contained in:
Peter Hormanns 2012-01-04 15:56:15 +00:00
parent 438a3f5f7d
commit d8ac72d343

View File

@ -109,7 +109,7 @@ public class DomainModuleImpl extends AbstractModuleImpl {
if (resultList.size() > 0) { if (resultList.size() > 0) {
Domain superDom = (Domain) resultList.get(0); Domain superDom = (Domain) resultList.get(0);
if (superDom.isPacDomain()) { if (superDom.isPacDomain()) {
throw new HSAdminException("subdomains to pacdomain " + superDom.getName() + " is not allowed"); throw new HSAdminException("subdomains to pacdomain " + superDom.getName() + " are not allowed");
} }
if (loginUser.hasPacAdminRoleFor(superDom.getUser().getPac())) { if (loginUser.hasPacAdminRoleFor(superDom.getUser().getPac())) {
break; // same pac break; // same pac