mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-05 23:58:18 +00:00
Fix #7319: For non admin users with ViewAll or ViewTests permissions testCaseResource listing with testSuiteID is returning null (#7320)
This commit is contained in:
parent
fc7510ff36
commit
1d56705f5b
@ -97,6 +97,7 @@ public class TestCaseResourceContext implements ResourceContextInterface {
|
||||
}
|
||||
|
||||
private static EntityInterface resolveEntityByName(String fqn) throws IOException {
|
||||
if (fqn == null) return null;
|
||||
EntityRepository<TestCase> dao = Entity.getEntityRepository(Entity.TEST_CASE);
|
||||
TestCase testCase = dao.getByName(null, fqn, dao.getFields("entityLink"), Include.ALL);
|
||||
return resolveEntityByEntityLink(EntityLink.parse(testCase.getEntityLink()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user