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