From e46faa0904b530772431ca2dda3a068654baa317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matti=20R=C3=A4s=C3=A4nen?= Date: Mon, 1 Sep 2025 15:04:20 +0300 Subject: [PATCH] OOD-92: Added service provider check to SHOW POPULATION button --- .../CourseStatistics/CourseTab/SingleCourseStats/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/frontend/src/pages/CourseStatistics/CourseTab/SingleCourseStats/index.tsx b/services/frontend/src/pages/CourseStatistics/CourseTab/SingleCourseStats/index.tsx index cca801272a..d2408f284b 100644 --- a/services/frontend/src/pages/CourseStatistics/CourseTab/SingleCourseStats/index.tsx +++ b/services/frontend/src/pages/CourseStatistics/CourseTab/SingleCourseStats/index.tsx @@ -8,6 +8,7 @@ import { difference, flatten, max, min, pickBy, uniq } from 'lodash' import { useEffect, useState } from 'react' import { useLocation, useNavigate } from 'react-router' +import { isDefaultServiceProvider } from '@/common' import { useLanguage } from '@/components/LanguagePicker/useLanguage' import { ProgrammeDropdown } from '@/components/material/ProgrammeDropdown' import { Section } from '@/components/material/Section' @@ -434,6 +435,9 @@ export const SingleCourseStats = ({ if (!userHasAccessToAllStats) { return null } + if (!isDefaultServiceProvider()) { + return null + } return (