From 48c3644e565213227915c4499bbcd21cd2bda10f Mon Sep 17 00:00:00 2001 From: Max Chopart Date: Thu, 14 Dec 2023 12:17:38 +0100 Subject: [PATCH] [Fix #46] With keycloak auth, users can now modify only their own profile (except for institution). --- js/components/user/User.js | 2 +- js/i18n/cs.js | 2 +- js/i18n/en.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/components/user/User.js b/js/components/user/User.js index a47574eb..dea58c90 100644 --- a/js/components/user/User.js +++ b/js/components/user/User.js @@ -101,7 +101,7 @@ class User extends React.Component { _redirectToKeycloak() { const {user, currentUser, handlers} = this.props; - if (user.isNew || (currentUser.username !== user.username && currentUser.role !== ROLE.ADMIN)) { + if (user.isNew || (currentUser.username !== user.username)) { return null; } else { return