diff --git a/src/main/webapp/app/overview/course-conversations/course-conversations.component.ts b/src/main/webapp/app/overview/course-conversations/course-conversations.component.ts index f65878c794e1..bdc17d480a70 100644 --- a/src/main/webapp/app/overview/course-conversations/course-conversations.component.ts +++ b/src/main/webapp/app/overview/course-conversations/course-conversations.component.ts @@ -40,6 +40,7 @@ import { CourseSidebarService } from 'app/overview/course-sidebar.service'; import { LayoutService } from 'app/shared/breakpoints/layout.service'; import { CustomBreakpointNames } from 'app/shared/breakpoints/breakpoints.service'; import { Posting, PostingType, SavedPostStatus, SavedPostStatusMap } from 'app/entities/metis/posting.model'; +import { canCreateChannel } from 'app/shared/metis/conversations/conversation-permissions.utils'; const DEFAULT_CHANNEL_GROUPS: AccordionGroups = { favoriteChannels: { entityData: [] }, @@ -424,6 +425,7 @@ export class CourseConversationsComponent implements OnInit, OnDestroy { ungroupedData: this.sidebarConversations, showAccordionLeadingIcon: true, messagingEnabled: isMessagingEnabled(this.course), + canCreateChannel: canCreateChannel(this.course!), }; } diff --git a/src/main/webapp/app/shared/sidebar/sidebar.component.html b/src/main/webapp/app/shared/sidebar/sidebar.component.html index e0a664240503..5b812f79d179 100644 --- a/src/main/webapp/app/shared/sidebar/sidebar.component.html +++ b/src/main/webapp/app/shared/sidebar/sidebar.component.html @@ -35,10 +35,12 @@ } - + @if (sidebarData?.canCreateChannel) { + + }