Skip to content

Commit 8aafe5f

Browse files
committed
feat: conditionally display attendance report link for teachers in menu
1 parent 26c5c00 commit 8aafe5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎client/src/GeneralLayout.jsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const menuGroups = [
5151
name: 'report', icon: <AnalyticsIcon />, routes: [
5252
({ permissions }) => !isTeacherView(permissions) && <MenuItemLink key="student-attendance" to="/student/student-attendance" primaryText="דוח נוכחות (פיבוט)" leftIcon={<SummarizeIcon />} />,
5353
<MenuItemLink key="percent-report-with-dates" to="/percent-report-with-dates" primaryText="דוח אחוזים לתלמידה" leftIcon={<PercentIcon />} />,
54-
<MenuItemLink key="att_report_with_report_month_lead" to="/att_report_with_report_month_lead" primaryText="דוח נוכחות לרכזת" leftIcon={<ViewListIcon />} />
54+
({ permissions }) => isTeacherView(permissions) && <MenuItemLink key="att_report_with_report_month_lead" to="/att_report_with_report_month_lead" primaryText="דוח נוכחות לרכזת" leftIcon={<ViewListIcon />} />
5555
]
5656
}),
5757
{ name: 'settings', icon: <SettingsIcon /> },

0 commit comments

Comments
 (0)