only add rights button if we have a rights page

This commit is contained in:
j 2021-06-03 16:31:13 +01:00
parent 166b566fde
commit 894e5c5064

View file

@ -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'),