SunnyZ-L opened a new issue #7892: URL: https://github.com/apache/dolphinscheduler/issues/7892
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened 1. When a non-admin user has authorized other resources, when creating a udf function, the UDF resource will display non `.jar` resources  2. UDF resource displays correctly when creating user with admin user ### What you expected to happen It is wrong to display non-.jar resources in UDF resources ### How to reproduce step1: Authorize some resources to user a under the administrator user step2: Log in with user a, and create or modify UDF functions, UDF resources display non `.jar` resources ### Anything else Discovered by looking at the code In the `org.apache.dolphinscheduler.api.service.impl.ResourcesServiceImpl#queryAuthoredResourceList` code, when querying UDF resources, the `t_ds_relation_udfs_user` table is not filtered by type, but the `t_ds_relation_resources_user` table is directly queried  ### Version 2.0.1 ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
