diff --git a/docs/api-viewer/PBSAPI.js b/docs/api-viewer/PBSAPI.js
index 60296a28..b45e0eb1 100644
--- a/docs/api-viewer/PBSAPI.js
+++ b/docs/api-viewer/PBSAPI.js
@@ -370,29 +370,31 @@ Ext.onReady(function() {
}
- var permhtml = '';
- if (!info.permissions) {
- permhtml = "Root only.";
- } else {
- if (info.permissions.description) {
- permhtml += "
" +
- Ext.htmlEncode(info.permissions.description) + "
";
+ if (!data.path.match(/\/_upgrade_/)) {
+ var permhtml = '';
+
+ if (!info.permissions) {
+ permhtml = "Root only.";
+ } else {
+ if (info.permissions.description) {
+ permhtml += "" +
+ Ext.htmlEncode(info.permissions.description) + "
";
+ }
+ permhtml += permission_text(info.permissions);
}
- permhtml += permission_text(info.permissions);
+
+ // we do not have this information for PBS api
+ //if (!info.allowtoken) {
+ // permhtml += "
This API endpoint is not available for API tokens."
+ //}
+
+ sections.push({
+ title: 'Required permissions',
+ bodyPadding: 10,
+ html: permhtml
+ });
}
- // we do not have this information for PBS api
- //if (!info.allowtoken) {
- // permhtml += "
This API endpoint is not available for API tokens."
- //}
-
- sections.push({
- title: 'Required permissions',
- bodyPadding: 10,
- html: permhtml
- });
-
-
items.push({
title: method,
autoScroll: true,