Skip to content

Commit

Permalink
Merge pull request #1576 from woowacourse/refactor/1575-role
Browse files Browse the repository at this point in the history
Refactor/#1575 아티클 글쓰기 role 변경
  • Loading branch information
hae-on authored Oct 6, 2023
2 parents ef0f981 + c46969c commit 638c4e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/pages/ArticleListPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const ArticleListPage = () => {
const { user } = useContext(UserContext);
const { isLoggedIn, role } = user;

const authorized = role === 'CREW' && isLoggedIn;
const authorized = isLoggedIn && role !== 'GUEST';

const { data: filteredArticles = [], refetch: getFilteredArticles } = useGetFilteredArticleQuery(
selectedCourse.value,
Expand Down

0 comments on commit 638c4e1

Please sign in to comment.