mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
Merge pull request #9295 from swordqiu/hotfix/qj-update-i18n-master-20201209
fix(cloudcommon): supplement i18n translations
This commit is contained in:
+3295
-3288
File diff suppressed because it is too large
Load Diff
+1642
-1624
File diff suppressed because it is too large
Load Diff
@@ -456,7 +456,7 @@ func SharablePerformPublic(model ISharableBaseModel, ctx context.Context, userCr
|
||||
}
|
||||
case rbacutils.ScopeSystem:
|
||||
if len(candidateIds) > 0 {
|
||||
return errors.Wrapf(httperrors.ErrForbidden, "sharing is limited to domains %s", jsonutils.Marshal(candidateIds))
|
||||
return httperrors.NewForbiddenError("sharing is limited to domains %s", jsonutils.Marshal(candidateIds))
|
||||
}
|
||||
_, err = SharedResourceManager.shareToTarget(ctx, userCred, model, SharedTargetProject, nil, nil, nil)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user