aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2020-02-17 13:26:40 +0100
committerSonarTech <sonartech@sonarsource.com>2020-02-21 20:46:16 +0100
commitfa27c18738852cb20da4669b4d61691270accc14 (patch)
treeb34133de874c7f1dc126312c64d3fda564c7380f /server/sonar-web/src/main/js
parent1274e4f398ab05aceaedcaa9fd5453ca5b7732a3 (diff)
downloadsonarqube-fa27c18738852cb20da4669b4d61691270accc14.tar.gz
sonarqube-fa27c18738852cb20da4669b4d61691270accc14.zip
SONAR-13030 Prevent adding notifications for Applications
Diffstat (limited to 'server/sonar-web/src/main/js')
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformation.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformation.tsx b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformation.tsx
index 50dc52ca3b9..c8a78beafbf 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformation.tsx
+++ b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformation.tsx
@@ -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' &&