Skip to content

Commit

Permalink
CHG move forum to admin
Browse files Browse the repository at this point in the history
  • Loading branch information
wabscale committed Sep 6, 2023
1 parent b249eaa commit 3883fa5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions api/anubis/views/public/forum.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
ForumPostComment,
ForumPostViewed,
)
from anubis.utils.auth.http import require_user
from anubis.utils.auth.http import require_user, require_admin
from anubis.utils.auth.user import current_user
from anubis.utils.auth.user import verify_in_course
from anubis.utils.http import success_response
Expand Down Expand Up @@ -245,7 +245,7 @@ def public_delete_forum_post_comment(comment_id: str):


@forum_.post('/image')
@require_user()
@require_admin()
@json_response
def public_post_forum_image():
image = process_file_upload()
Expand Down
12 changes: 6 additions & 6 deletions web/src/navconfig.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,6 @@ export const public_nav = [
path: '/courses',
Page: Courses,
},
{
id: 'Forum',
icon: <ForumIcon/>,
path: '/forum',
Page: Forum,
},
{
id: 'Lectures',
icon: <ImportContactsIcon/>,
Expand Down Expand Up @@ -162,6 +156,12 @@ export const admin_nav = [
Page: AdminCourse,
exact: false,
},
{
id: 'Forum',
icon: <ForumIcon/>,
path: '/forum',
Page: Forum,
},
{
id: 'Lectures',
icon: <ImportContactsIcon/>,
Expand Down

0 comments on commit 3883fa5

Please sign in to comment.