<fix>[identity]: fix uncessary api parameter check
Check failed,remove the check parameter of the api
and add a judgment condition, for resources that do
not inherit the OwenByAccount class,
the permission check is skipped
directly,and write the corresponding case.
Resolves:
@@ -237,6 +237,9 @@ public class OperationTargetAPIRequestChecker implements APIRequestChecker {
if (RBAC.isResourceGlobalReadable(resourceType)) {
return;
}
+ if (!OwnedByAccount.class.isAssignableFrom(resourceType)){
+ return;
+ }
List<String> uuids = getResourceUuids(param);
if (uuids.isEmpty()) {
