# Back-end staat moderators toe om posts samen te voegen/verplaatsen naar privéberichten, maar de front-end niet

**URL:** <https://meta.discourse.org/t/back-end-allows-moderators-to-use-merge-move-posts-to-private-message-but-front-end-does-not/166218>\
**Category:** Product Support\
**Created:** [4 oktober 2020 om 21:17 UTC](https://meta.discourse.org/t/back-end-allows-moderators-to-use-merge-move-posts-to-private-message-but-front-end-does-not/166218 "2020-10-04T21:17:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Hooksmith](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hooksmith/32/142826_2.png) [@Hooksmith](https://meta.discourse.org/u/Hooksmith)\
**Post date:** [4 oktober 2020 om 21:17 UTC](https://meta.discourse.org/t/back-end-allows-moderators-to-use-merge-move-posts-to-private-message-but-front-end-does-not/166218/1 "2020-10-04T21:17:37Z")

</div>

This functionality shows up when you are administrator, but not for moderators:

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/2/327148f6f63e02b6d5a3dd7921b79e5ee8ab2319.png)

The front-end code for this is here:

> <https://github.com/discourse/discourse/blob/52672b9eabccb1184d85dc7f08062d5a7c18cb73/app/assets/javascripts/discourse/app/controllers/move-to-topic.js#L109-L112>

Note the “`this.currentUser.admin`”.

However, the back-end allows for moderators (all staff) to perform this action just fine:

> <https://github.com/discourse/discourse/blob/5cf411c3aec01f48c26e71de5440ff4c0512c266/app/controllers/topics_controller.rb#L709-L715>

> <https://github.com/discourse/discourse/blob/5cf411c3aec01f48c26e71de5440ff4c0512c266/app/controllers/topics_controller.rb#L737-L740>

> <https://github.com/discourse/discourse/blob/9f73e8779d3ae7a1646473d4138a85c3660a58db/lib/guardian/topic_guardian.rb#L205-L220>

* * *

I think the front-end code should be adjusted:

```diff
@discourseComputed("canSplitTopic")
canSplitToPM(canSplitTopic) {
- return canSplitTopic && this.currentUser && this.currentUser.admin;
+ return canSplitTopic && this.currentUser && this.currentUser.staff;
},

```

If you agree with this being a bug I’d be happy to make a PR to fix it. Our moderation team would have need of this fix.

---

_[View the full topic](https://meta.discourse.org/t/back-end-allows-moderators-to-use-merge-move-posts-to-private-message-but-front-end-does-not/166218)._
