mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix: class action 统一使用keywords包裹
This commit is contained in:
@@ -1331,11 +1331,7 @@ func managerPerformCheckCreateData(
|
||||
query jsonutils.JSONObject,
|
||||
data jsonutils.JSONObject,
|
||||
) (jsonutils.JSONObject, error) {
|
||||
body, err := data.(*jsonutils.JSONDict).Get(manager.Keyword())
|
||||
if err != nil {
|
||||
return nil, httperrors.NewGeneralError(err)
|
||||
}
|
||||
bodyDict := body.(*jsonutils.JSONDict)
|
||||
bodyDict := data.(*jsonutils.JSONDict)
|
||||
|
||||
if consts.IsRbacEnabled() {
|
||||
err := isClassRbacAllowed(manager, userCred, ownerId, policy.PolicyActionPerform, action)
|
||||
|
||||
Reference in New Issue
Block a user