diff --git a/src/routes/_authenticated/students.$id.tsx b/src/routes/_authenticated/students.$id.tsx index 846d31a..346416d 100644 --- a/src/routes/_authenticated/students.$id.tsx +++ b/src/routes/_authenticated/students.$id.tsx @@ -62,7 +62,7 @@ function StudentDetail() { const { id } = Route.useParams(); const { roles } = useAuth(); const isAdmin = roles.includes("admin"); - const canEdit = isAdmin || roles.includes("parent"); // parents can fill out their own child's profile (RLS-scoped) + const canEdit = isAdmin; // student profile data is admin-edit-only; parents/teachers view only const { data: student } = useQuery({ queryKey: ["student", id], @@ -355,7 +355,7 @@ function ParentAccessSection({ studentId }: { studentId: string }) { }); return (
Create logins so a parent (can edit this profile) or the student (view-only grades) can sign in.
Create view-only logins so a parent or the student can sign in to see this student's info and grades.