diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-02-02 16:04:23 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-02-02 16:04:23 +0100 |
commit | 00fa8015834b6e92f7043b489689105f0dae70f7 (patch) | |
tree | fef755e800efedacf23472554d725e6e84052cc0 /server/sonar-web/src/main/js/apps/account/components/Security.js | |
parent | 5c807b352c708657cdeefc3ce154f25fab624582 (diff) | |
download | sonarqube-00fa8015834b6e92f7043b489689105f0dae70f7.tar.gz sonarqube-00fa8015834b6e92f7043b489689105f0dae70f7.zip |
SONAR-7250 use api/users/current on "My Account" page
Diffstat (limited to 'server/sonar-web/src/main/js/apps/account/components/Security.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/account/components/Security.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/account/components/Security.js b/server/sonar-web/src/main/js/apps/account/components/Security.js index 44938188c5c..52f0a1a9e74 100644 --- a/server/sonar-web/src/main/js/apps/account/components/Security.js +++ b/server/sonar-web/src/main/js/apps/account/components/Security.js @@ -22,7 +22,7 @@ import React from 'react'; import Password from './Password'; import Tokens from './Tokens'; -export default function Security ({ user }) { +export default function Security ({ user, canChangePassword }) { return ( <div className="page page-limited"> <div className="columns"> @@ -30,7 +30,7 @@ export default function Security ({ user }) { <Tokens user={user}/> </div> - {user.canChangePassword && ( + {canChangePassword && ( <div className="column-half"> <Password user={user}/> </div> |