]> git.proxmox.com Git - pve2-api-doc.git/blobdiff - data/PVEAPI.js
only add default description if there is no other description.
[pve2-api-doc.git] / data / PVEAPI.js
index 64586a46a70cfa097ba5d58cdbeeb5899e0f5c55..58d15acea4f97099772e4b02e3cd81978a2d1925 100644 (file)
@@ -188,13 +188,15 @@ Ext.onReady(function() {
                    }
 
                    if (info.permissions.user) {
-                       if (info.permissions.user === 'world') {
-                           permhtml += "Accessible without any authententification.";
-                       } else if (info.permissions.user === 'all') {
-                           permhtml += "Accessible by all authententicated users.";
-                       } else {
-                           permhtml += 'Onyl accessible by user "' + 
-                               info.permissions.user + '"';
+                       if (!info.permissions.description) {
+                           if (info.permissions.user === 'world') {
+                               permhtml += "Accessible without any authententification.";
+                           } else if (info.permissions.user === 'all') {
+                               permhtml += "Accessible by all authententicated users.";
+                           } else {
+                               permhtml += 'Onyl accessible by user "' + 
+                                   info.permissions.user + '"';
+                           }
                        }
                    } else if (info.permissions.check) {
                        permhtml += "<pre>Check: " +