Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions core/src/org/labkey/core/admin/AdminController.java
Original file line number Diff line number Diff line change
Expand Up @@ -2625,6 +2625,11 @@ protected UserSchema getUserSchema()
@Override
protected QueryView createQueryView(QueryExportForm form, BindException errors, boolean forExport, @Nullable String dataRegion) throws Exception
{
if (!getContainer().isRoot())
{
throw new NotFoundException("Available only in the root container");
}

if (!CoreSchema.getInstance().getSqlDialect().isPostgreSQL())
{
throw new NotFoundException("Available only with Postgres as the primary database");
Expand Down