aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/account/components/Security.js
diff options
context:
space:
mode:
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.js4
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>