mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Method signature change
This commit is contained in:
parent
e3f179844e
commit
ee9fbf10b6
@ -225,7 +225,7 @@ public class BareMetalVmManagerImpl extends UserVmManagerImpl implements BareMet
|
||||
throw new InvalidParameterValueException("Unable to find account " + accountName + " in domain " + domainId);
|
||||
}
|
||||
|
||||
_accountMgr.checkAccess(caller, owner);
|
||||
_accountMgr.checkAccess(caller, null, owner);
|
||||
long accountId = owner.getId();
|
||||
|
||||
DataCenterVO dc = _dcDao.findById(cmd.getZoneId());
|
||||
@ -300,7 +300,7 @@ public class BareMetalVmManagerImpl extends UserVmManagerImpl implements BareMet
|
||||
sshPublicKey = pair.getPublicKey();
|
||||
}
|
||||
|
||||
_accountMgr.checkAccess(caller, template);
|
||||
_accountMgr.checkAccess(caller, null, template);
|
||||
|
||||
DataCenterDeployment plan = new DataCenterDeployment(dc.getId());
|
||||
|
||||
|
||||
@ -833,7 +833,7 @@ public class SecurityGroupManagerImpl implements SecurityGroupManager, SecurityG
|
||||
}
|
||||
|
||||
// Verify permissions
|
||||
_accountMgr.checkAccess(caller, securityGroup);
|
||||
_accountMgr.checkAccess(caller, null, securityGroup);
|
||||
Long domainId = owner.getDomainId();
|
||||
|
||||
if (protocol == null) {
|
||||
@ -910,7 +910,7 @@ public class SecurityGroupManagerImpl implements SecurityGroupManager, SecurityG
|
||||
}
|
||||
|
||||
// Check permissions
|
||||
_accountMgr.checkAccess(caller, groupVO);
|
||||
_accountMgr.checkAccess(caller, null, groupVO);
|
||||
|
||||
authorizedGroups.add(groupVO);
|
||||
}
|
||||
@ -993,7 +993,7 @@ public class SecurityGroupManagerImpl implements SecurityGroupManager, SecurityG
|
||||
|
||||
// Check permissions
|
||||
SecurityGroup securityGroup = _securityGroupDao.findById(rule.getSecurityGroupId());
|
||||
_accountMgr.checkAccess(caller, securityGroup);
|
||||
_accountMgr.checkAccess(caller, null, securityGroup);
|
||||
|
||||
SecurityGroupVO groupHandle = null;
|
||||
final Transaction txn = Transaction.currentTxn();
|
||||
|
||||
@ -122,7 +122,7 @@ public class ProjectManagerImpl implements ProjectManager, Manager{
|
||||
throw new InvalidParameterValueException("Unable to find project by id " + projectId);
|
||||
}
|
||||
|
||||
_accountMgr.checkAccess(caller, project);
|
||||
_accountMgr.checkAccess(caller, null, project);
|
||||
|
||||
//TODO - delete all project resources here
|
||||
|
||||
|
||||
@ -3295,7 +3295,7 @@ public class UserVmManagerImpl implements UserVmManager, UserVmService, Manager
|
||||
VirtualMachineTemplate template = _templateDao.findById(vm.getTemplateId());
|
||||
if (!template.isPublicTemplate()) {
|
||||
Account templateOwner = _accountMgr.getAccount(template.getAccountId());
|
||||
_accountMgr.checkAccess(newAccount, templateOwner);
|
||||
_accountMgr.checkAccess(newAccount, null, templateOwner);
|
||||
}
|
||||
|
||||
// VV 5: check that vm owner can create vm in the domain
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user