mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
api: Prevent modifying acl rules order for default ACLs (#6187)
This commit is contained in:
parent
daa7bdb046
commit
c1c381fcd1
@ -1145,6 +1145,9 @@ public class NetworkACLServiceImpl extends ManagerBase implements NetworkACLServ
|
||||
}
|
||||
NetworkACLVO acl = _networkACLDao.findById(aclId);
|
||||
Vpc vpc = _entityMgr.findById(Vpc.class, acl.getVpcId());
|
||||
if (vpc == null) {
|
||||
throw new InvalidParameterValueException("Re-ordering rules for a default ACL is prohibited");
|
||||
}
|
||||
Account caller = CallContext.current().getCallingAccount();
|
||||
_accountMgr.checkAccess(caller, null, true, vpc);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user