fix: allow app admins to access MedSchedule UI and API
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user