CLASSROOMIO-T-152: Student can join any course via invite link
This commit is contained in:
@@ -7,7 +7,8 @@ export const ROUTE = {
|
||||
COURSE: '/course',
|
||||
LOGIN: '/login',
|
||||
SIGN_UP: '/signup',
|
||||
INVITE_SIGNUP: '/invite',
|
||||
INVITE_TEACHER: '/invite/t',
|
||||
INVITE_STUDENT: '/invite/s',
|
||||
PROFILE: '/profile',
|
||||
PEOPLE: '/people',
|
||||
DISCUSSIONS: '/discussions',
|
||||
@@ -20,7 +21,7 @@ export const PUBLIC_ROUTES = [
|
||||
`^${ROUTE.HOME}$`,
|
||||
ROUTE.LOGIN,
|
||||
ROUTE.SIGN_UP,
|
||||
`^${ROUTE.INVITE_SIGNUP}/.*`,
|
||||
`^${ROUTE.INVITE_TEACHER}/.*`,
|
||||
ROUTE.FORGOT,
|
||||
ROUTE.RESET,
|
||||
`^${ROUTE.PAGES}/.*`,
|
||||
@@ -31,7 +32,8 @@ export const PUBLIC_ROUTES = [
|
||||
export const ROUTES_TO_HIDE_NAV = [
|
||||
ROUTE.LOGIN,
|
||||
ROUTE.SIGN_UP,
|
||||
`^${ROUTE.INVITE_SIGNUP}/.*`,
|
||||
`^${ROUTE.INVITE_TEACHER}/.*`,
|
||||
`^${ROUTE.INVITE_STUDENT}/.*`,
|
||||
ROUTE.FORGOT,
|
||||
ROUTE.RESET,
|
||||
ROUTE.ONBOARDING
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
import { supabase } from '$lib/utils/functions/supabase';
|
||||
import type { Profile } from '$lib/components/Course/components/People/types';
|
||||
|
||||
export async function getProfile(email: string): Promise<Profile | null> {
|
||||
const { data } = await supabase.from('profile').select('*').eq('email', email).single();
|
||||
console.log('getProfile data', data);
|
||||
return data;
|
||||
}
|
||||
@@ -64,6 +64,7 @@ export interface Group {
|
||||
updated_at?: string;
|
||||
organization_id?: string /* foreign key to organization.id */;
|
||||
organization?: Organization;
|
||||
tutors: Profile[];
|
||||
}
|
||||
|
||||
export interface Role {
|
||||
|
||||
Reference in New Issue
Block a user