Skip to content

Commit

Permalink
MID-8204 fix Clicking on "Debug" in the context of assignments search…
Browse files Browse the repository at this point in the history
… causes 500
  • Loading branch information
KaterynaHonchar committed Oct 12, 2022
1 parent 2cd3096 commit f6bf678
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,8 @@ private boolean isAdvancedMode() {
|| SearchBoxModeType.AXIOM_QUERY.equals(getModelObject().getSearchMode());
}
private boolean isQueryPlaygroundAccessible() {
return SecurityUtils.isPageAuthorized(PageRepositoryQuery.class) && SearchBoxModeType.ADVANCED.equals(getModelObject().getSearchMode());
return SecurityUtils.isPageAuthorized(PageRepositoryQuery.class) && SearchBoxModeType.ADVANCED.equals(getModelObject().getSearchMode())
&& ObjectType.class.isAssignableFrom(getModelObject().getTypeClass());
}

private void debugPerformed() {
Expand Down

0 comments on commit f6bf678

Please sign in to comment.