Skip to content

Node.js based forum software built for the modern web

fix: only offer categories the user can crosspost to

palmoni5e9cfa61fc5ee
diff --git a/public/src/client/topic/crosspost.js b/public/src/client/topic/crosspost.js
index 13b5523d4a..8378f5d8a8 100644
--- a/public/src/client/topic/crosspost.js
+++ b/public/src/client/topic/crosspost.js
@@ -54,6 +54,7 @@ define('forum/topic/crosspost', [
}
categoryFilter.init($('[component="category/dropdown"]'), {
onHidden: onCategoriesSelected,
+ privilege: 'topics:crosspost',
hideAll: true,
hideUncategorized: true,
localOnly: true,