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