mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix: cloud-account-usage no data for domain admin
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user