Skip to content

Commit

Permalink
Update History and RouteGuard.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtan2000 committed Aug 22, 2024
1 parent 2e8af7a commit f2767b2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/(main)/quiz/history/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// app/quiz/history/page.tsx
'use client';
import { Quiz } from '@/types';
import React, { useEffect, useState } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion lib/RouteGuard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const RouteGuard = {
return this.accessibleBy(['student']);
case '/quiz/history':
return this.accessibleBy(['student']);
case '/questions/create':
case '/questions/create':
return this.accessibleBy(['admin', 'tutor']);
case '/questions/edit':
return this.accessibleBy(['admin', 'tutor']);
Expand Down

0 comments on commit f2767b2

Please sign in to comment.