aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-05-11 12:24:44 +0200
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2017-05-12 12:37:19 +0200
commit555c7dd62475cac4e96bfa9ffbed6dd523ea8ad1 (patch)
treeb1b807f9bfb8cdd8e5cd210ccb93e3202a0e3204 /server/sonar-web/src/main/js/helpers
parent8b20d9b681313b7b6b9bf0071e9169995d434912 (diff)
downloadsonarqube-555c7dd62475cac4e96bfa9ffbed6dd523ea8ad1.tar.gz
sonarqube-555c7dd62475cac4e96bfa9ffbed6dd523ea8ad1.zip
SONAR-8822 Show the administration menu only to authorized users
Diffstat (limited to 'server/sonar-web/src/main/js/helpers')
-rw-r--r--server/sonar-web/src/main/js/helpers/users.js27
1 files changed, 0 insertions, 27 deletions
diff --git a/server/sonar-web/src/main/js/helpers/users.js b/server/sonar-web/src/main/js/helpers/users.js
deleted file mode 100644
index cebcbf556b4..00000000000
--- a/server/sonar-web/src/main/js/helpers/users.js
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2017 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-// @flow
-type User = {
- permissions: {
- global: Array<string>
- }
-};
-
-export const isUserAdmin = (user: User): boolean => user.permissions.global.includes('admin');