subdomains to pacdomain are not allowed
This commit is contained in:
parent
438a3f5f7d
commit
d8ac72d343
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user