Skip to content

Commit 009cc3b

Browse files
jamsman94Min Min
and
Min Min
authored
fix run_test data panic (koderover#3113)
Signed-off-by: Min Min <minmin@koderover.com> Co-authored-by: Min Min <minmin@koderover.com>
1 parent a8d08cf commit 009cc3b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/microservice/user/core/service.go

+4
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,10 @@ RoleLoop:
339339
verb = "get_test_detail"
340340
}
341341

342+
if verb == "run_test" && role.Namespace == "*" {
343+
continue
344+
}
345+
342346
if _, ok := actionIDMap[verb]; !ok {
343347
action, err := orm.GetActionByVerb(verb, repository.DB)
344348
if err != nil {

0 commit comments

Comments
 (0)