api-viewer: do not show permission for backup/restore protocol
Permission check is done before the H2 upgrade.
This commit is contained in:
parent
60473d234a
commit
00fdaaf12b
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user