# 사용자가 스태프인지 확인하는 방법

**URL:** https://meta.discourse.org/t/how-to-check-if-the-user-is-a-staff/140155
**Category:** Development
**Created:** [1월 30, 2020, 10:47오전 UTC](https://meta.discourse.org/t/how-to-check-if-the-user-is-a-staff/140155 "2020-01-30T10:47:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Chaboi\_3000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chaboi_3000/32/163015_2.png) [@Chaboi\_3000](https://meta.discourse.org/u/Chaboi_3000)
#### Post date: [1월 30, 2020, 10:47오전 UTC](https://meta.discourse.org/t/how-to-check-if-the-user-is-a-staff/140155/1 "2020-01-30T10:47:27Z")

</div>

테마 컴포넌트에서 작업을 수행하기 전에 사용자가 스태프인지 확인하고 싶습니다. JS에서 이렇게 할 수 있는 방법이 있나요?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [1월 30, 2020, 1:42오후 UTC](https://meta.discourse.org/t/how-to-check-if-the-user-is-a-staff/140155/2 "2020-01-30T13:42:04Z")

</div>

다음과 같은 것이 필요합니다:

```plaintext
    var isStaff = () => {
      const thisUser = Discourse.User.current(); 
      return thisUser.admin || thisUser.moderator
    }
    console.log(isStaff());

```
