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 = ''; var permhtml = '';
if (!info.permissions) { if (!info.permissions) {
permhtml = "Root only."; permhtml = "Root only.";
} else { } else {
@ -391,7 +393,7 @@ Ext.onReady(function() {
bodyPadding: 10, bodyPadding: 10,
html: permhtml html: permhtml
}); });
}
items.push({ items.push({
title: method, title: method,