api-viewer: do not show permission for backup/restore protocol

Permission check is done before the H2 upgrade.
This commit is contained in:
Dietmar Maurer 2021-02-23 10:04:16 +01:00
parent 60473d234a
commit 00fdaaf12b

View File

@ -370,7 +370,9 @@ Ext.onReady(function() {
}
if (!data.path.match(/\/_upgrade_/)) {
var permhtml = '';
if (!info.permissions) {
permhtml = "Root only.";
} else {
@ -391,7 +393,7 @@ Ext.onReady(function() {
bodyPadding: 10,
html: permhtml
});
}
items.push({
title: method,