Skip to content

Commit

Permalink
[Fix #46] With keycloak auth, users can now modify only their own pro…
Browse files Browse the repository at this point in the history
…file (except for institution).
  • Loading branch information
LaChope committed Dec 14, 2023
1 parent e881f18 commit 48c3644
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/components/user/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 <Button style={{margin: '0 0.3em 0 0'}} variant='primary' size='sm' ref='submit'
Expand Down
2 changes: 1 addition & 1 deletion js/i18n/cs.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default {
'user.delete-invitation-option-error': 'Nepodařilo se smazat možnost pozvání uživatele do studie. {error}',
'user.impersonate': 'Impersonace',
'user.impersonate-error': 'Impersonace se nepodařila. {error}',
'user.edit': 'Upravit profil uživatele',
'user.edit': 'Upravit profil',

'institutions.panel-title': 'Instituce',
'institutions.create-institution': 'Vytvořit instituci',
Expand Down
2 changes: 1 addition & 1 deletion js/i18n/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default {
'user.delete-invitation-option-error': 'Unable to delete option to invite user to study. {error}',
'user.impersonate': 'Impersonate',
'user.impersonate-error': 'Unable to impersonate. {error}',
'user.edit': 'Edit user profile',
'user.edit': 'Edit profile',

'institutions.panel-title': 'Institutions',
'institutions.create-institution': 'Create institution',
Expand Down

0 comments on commit 48c3644

Please sign in to comment.