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