]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-13030 Prevent adding notifications for Applications
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Mon, 17 Feb 2020 12:26:40 +0000 (13:26 +0100)
committerSonarTech <sonartech@sonarsource.com>
Fri, 21 Feb 2020 19:46:16 +0000 (20:46 +0100)
server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformation.tsx

index 50dc52ca3b9a6b67f288cca8c7a0fe16812976d8..c8a78beafbfe381dfa6821943589a4c69c56e786 100644 (file)
@@ -86,7 +86,8 @@ export class ProjectInformation extends React.PureComponent<Props, State> {
     const { branchLike, component, currentUser, metrics } = this.props;
     const { measures, page } = this.state;
 
-    const canConfigureNotifications = isLoggedIn(currentUser);
+    const canConfigureNotifications =
+      isLoggedIn(currentUser) && component.qualifier === ComponentQualifier.Project;
     const canUseBadges =
       metrics !== undefined &&
       component.visibility !== 'private' &&