mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
Mind review findings
This commit is contained in:
@@ -42,7 +42,8 @@ class ChangePasswordNavLink extends React.Component<Props> {
|
||||
}
|
||||
|
||||
hasPermissionToSetPassword = () => {
|
||||
return this.props.user._links.password;
|
||||
const { user } = this.props;
|
||||
return !user.external && user._links.password;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user