mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6350: IAM - Listing of VM using uuid when owner account of
this Vm is deleted results is VM not being returned.But list VM with listAll=true is able to return this VM.
This commit is contained in:
parent
f29e4e21eb
commit
3661e67fd1
|
|
@ -2231,8 +2231,8 @@ public class AccountManagerImpl extends ManagerBase implements AccountManager, M
|
|||
owner = caller;
|
||||
}
|
||||
AccessType accessType = AccessType.UseEntry;
|
||||
if (listAll) {
|
||||
// listAll = true should show all resources that owner has ListEntry access type
|
||||
if (listAll || id != null) {
|
||||
// listAll = true or id given should show all resources that owner has ListEntry access type.
|
||||
accessType = AccessType.ListEntry;
|
||||
}
|
||||
domainIdRecursiveListProject.third(Project.ListProjectResourcesCriteria.SkipProjectResources);
|
||||
|
|
|
|||
Loading…
Reference in New Issue