fix logic
This commit is contained in:
parent
bed01753ac
commit
32f8e90490
@ -213,7 +213,7 @@ public class DomainModuleImpl extends AbstractModuleImpl {
|
|||||||
boolean isCustomer = aLoginUserName.equals(domPac.getCustomer().getName());
|
boolean isCustomer = aLoginUserName.equals(domPac.getCustomer().getName());
|
||||||
boolean isHostmaster = loginUser.hasHostmasterRole();
|
boolean isHostmaster = loginUser.hasHostmasterRole();
|
||||||
if (!isPacAdmin && !isCustomer && !isHostmaster) {
|
if (!isPacAdmin && !isCustomer && !isHostmaster) {
|
||||||
if (! isDomAdmin || !"update".equals(method)) {
|
if (!isDomAdmin || !"update".equals(method)) {
|
||||||
throw new AuthorisationException(loginUser, method, dom);
|
throw new AuthorisationException(loginUser, method, dom);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user