Browse Source

update

pull/2/head
lilin 5 years ago
parent
commit
b34f9745dc
  1. 6
      dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ResourcesService.java

6
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ResourcesService.java

@ -235,12 +235,6 @@ public class ResourcesService extends BaseService {
return result; return result;
} }
// query tenant by user id
String tenantCode = getTenantCode(resource.getUserId(),result);
if (StringUtils.isEmpty(tenantCode)){
return result;
}
//get the file suffix //get the file suffix
String originResourceName = resource.getAlias(); String originResourceName = resource.getAlias();
String suffix = originResourceName.substring(originResourceName.lastIndexOf(".")); String suffix = originResourceName.substring(originResourceName.lastIndexOf("."));

Loading…
Cancel
Save