aboutsummaryrefslogtreecommitdiff
path: root/resources/vue/components/forum/topics/CreateTopic.vue
diff options
context:
space:
mode:
Diffstat (limited to 'resources/vue/components/forum/topics/CreateTopic.vue')
-rw-r--r--resources/vue/components/forum/topics/CreateTopic.vue3
1 files changed, 3 insertions, 0 deletions
diff --git a/resources/vue/components/forum/topics/CreateTopic.vue b/resources/vue/components/forum/topics/CreateTopic.vue
index 03b7542..88a9ad9 100644
--- a/resources/vue/components/forum/topics/CreateTopic.vue
+++ b/resources/vue/components/forum/topics/CreateTopic.vue
@@ -2,7 +2,9 @@
<script setup>
import StudipIcon from "@/vue/components/StudipIcon.vue";
import {computed} from "vue";
+import {useForumConfig} from "../../../store/pinia/forum/ForumConfig";
+const forumConfig = useForumConfig();
const props = defineProps({
category_id: {
type: String,
@@ -24,6 +26,7 @@ const topicCreateURL = computed(() => {
<template>
<a
+ v-if="forumConfig.isModerator"
:href="topicCreateURL"
data-dialog="width=700"
:title="$gettext('Neues Thema anlegen')"