From 894e5c5064617ab8e536b237561a45119056b45e Mon Sep 17 00:00:00 2001 From: j Date: Thu, 3 Jun 2021 16:31:13 +0100 Subject: [PATCH] only add rights button if we have a rights page --- static/js/infoViewUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/infoViewUtils.js b/static/js/infoViewUtils.js index 6c415c1bf..037f7e2ce 100644 --- a/static/js/infoViewUtils.js +++ b/static/js/infoViewUtils.js @@ -137,7 +137,7 @@ pandora.renderRightsLevel = function(that, $rightsLevel, data, isMixed, isMultip .data({OxColor: $element.data('OxColor')}) .appendTo($line); }); - if (!canEdit) { + if (!canEdit && Ox.getObjectById(pandora.site.sitePages, 'rights')) { Ox.Button({ title: Ox._('Help'), tooltip: Ox._('About Rights'),