]> source.dussan.org Git - sonarqube.git/commitdiff
fix projects management page
authorStas Vilchik <vilchiks@gmail.com>
Wed, 3 Feb 2016 10:04:14 +0000 (11:04 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 3 Feb 2016 10:04:20 +0000 (11:04 +0100)
server/sonar-web/src/main/js/apps/projects/app.js

index d6e548424149f780fbbeca04d906063bdb0a4731..8ac06e62dd02fb4ce94ae83b6bde45c9ae49b465 100644 (file)
@@ -23,7 +23,7 @@ import Main from './main';
 import { getCurrentUser } from '../../api/users';
 
 window.sonarqube.appStarted.then(options => {
-  getCurrentUser().done(user => {
+  getCurrentUser().then(user => {
     let el = document.querySelector(options.el);
     let hasProvisionPermission = user.permissions.global.indexOf('provisioning') !== -1;
     let topLevelQualifiers = options.rootQualifiers;