From 2488108126ef0a0683dc0246a92438a2043fd7d4 Mon Sep 17 00:00:00 2001 From: Max Chopart Date: Wed, 13 Dec 2023 17:20:13 +0100 Subject: [PATCH] [Fix #18] Fixed UI when not auth with Oidc --- js/components/user/User.js | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/js/components/user/User.js b/js/components/user/User.js index ee73bc0b..eea5f140 100644 --- a/js/components/user/User.js +++ b/js/components/user/User.js @@ -259,22 +259,26 @@ class User extends React.Component {
{this._impersonateButton()} {this._passwordChange()} - {this._saveAndSendEmailButton()} - {currentUser.role === ROLE.ADMIN && - + {!isUsingOidcAuth() && + <> + {this._saveAndSendEmailButton()} + {currentUser.role === ROLE.ADMIN || currentUser.username === user.username && + + } + + } -
{showAlert && userSaved.status === ACTION_STATUS.ERROR &&