fix: allow app admins to access MedSchedule UI and API

This commit is contained in:
2026-07-15 11:10:46 +03:00
parent 9c6eaa5dcf
commit 2b682d5ad3
2 changed files with 7 additions and 17 deletions

View File

@@ -1208,7 +1208,7 @@ function MedScheduleNavItem({ collapsed }: { collapsed: boolean }) {
const [location] = useLocation();
const isActive = location === '/med' || location.startsWith('/med/');
if (user?.organization?.slug !== 'medschedule') return null;
if (user?.organization?.slug !== 'medschedule' && !isAdmin(user)) return null;
if (collapsed) {
return (