# Can I activate my plugin only for those registered on the site?

**URL:** <https://meta.discourse.org/t/can-i-activate-my-plugin-only-for-those-registered-on-the-site/115857>\
**Category:** Product Support\
**Created:** [24.Апрель.2019 13:48:23 UTC](https://meta.discourse.org/t/can-i-activate-my-plugin-only-for-those-registered-on-the-site/115857 "2019-04-24T13:48:23Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![eextra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eextra/32/170266_2.png) [@eextra](https://meta.discourse.org/u/eextra)\
**Post date:** [06.Май.2019 07:38:04 UTC](https://meta.discourse.org/t/can-i-activate-my-plugin-only-for-those-registered-on-the-site/115857/9 "2019-05-06T07:38:04Z")

</div>

> [@Stranik](#):
>
> currentUser

So do I understand that a command is enough, or do I have to add some parameters?

```
    const currentUser = this.currentUser;
    if (!currentUser) {
      return;
    }

```

---

_[View the full topic](https://meta.discourse.org/t/can-i-activate-my-plugin-only-for-those-registered-on-the-site/115857)._
