fix: cloud-account-usage no data for domain admin

This commit is contained in:
Qiu Jian
2019-08-17 18:37:53 +08:00
parent dfeb5d1e06
commit 4a46cdeb19
2 changed files with 27 additions and 19 deletions
+4
View File
@@ -21,6 +21,10 @@ import (
"yunion.io/x/onecloud/pkg/util/rbacutils"
)
func IsObjectRbacAllowed(model IModel, userCred mcclient.TokenCredential, action string, extra ...string) bool {
return isObjectRbacAllowed(model, userCred, action, extra...)
}
func isObjectRbacAllowed(model IModel, userCred mcclient.TokenCredential, action string, extra ...string) bool {
manager := model.GetModelManager()
objOwnerId := model.GetOwnerId()