shouldShowProductVersion returns whether the handler should show detailed product info (version). Admin requests can always see this, regardless of the HideProductVersion setting.
()
| 1815 | // shouldShowProductVersion returns whether the handler should show detailed product info (version). |
| 1816 | // Admin requests can always see this, regardless of the HideProductVersion setting. |
| 1817 | func (h *handler) shouldShowProductVersion() bool { |
| 1818 | hideProductVersion := base.ValDefault(h.server.Config.API.HideProductVersion, false) |
| 1819 | return h.serverType == adminServer || !hideProductVersion |
| 1820 | } |
| 1821 | |
| 1822 | func requiresWritePermission(accessPermissions []Permission) bool { |
| 1823 | for _, permission := range accessPermissions { |
no test coverage detected