Skip to content

Commit

Permalink
Merge pull request #690 from gregorydlogan/main
Browse files Browse the repository at this point in the history
Using correct config key to hide imprint and privacy policy links
  • Loading branch information
lkiesow committed Jun 12, 2024
2 parents 06a4309 + e2fcbba commit 7c895f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const Footer: React.FC = () => {
const lastModified = user?.ocVersion?.['last-modified']
? new Date(user.ocVersion['last-modified']).toISOString().substring(0, 10)
: 'unknown';
const aboutEnabled = orgProperties['org.opencastproject.admin.display_about']?.toLowerCase() === 'true';

return (
<footer id="main-footer">
Expand All @@ -40,7 +41,7 @@ const Footer: React.FC = () => {
)}
</li>
)}
{!!orgProperties && !!orgProperties["org.opencastproject.admin.display_about"] && (
{aboutEnabled && (
<>
<li><Link to="/about/imprint">{t("ABOUT.IMPRINT")}</Link></li>
<li><Link to="/about/privacy">{t("ABOUT.PRIVACY")}</Link></li>
Expand Down

0 comments on commit 7c895f5

Please sign in to comment.