Skip to content

Commit

Permalink
fix update of userdata after OAuth login (#317, #160)
Browse files Browse the repository at this point in the history
  • Loading branch information
h44z committed Jan 13, 2025
1 parent 2d78fe3 commit 17844ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/users/user_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ func (m Manager) validateModifications(ctx context.Context, old, new *domain.Use
return fmt.Errorf("insufficient permissions")
}

if err := old.EditAllowed(new); err != nil {
if err := old.EditAllowed(new); err != nil && currentUser.Id != domain.SystemAdminContextUserInfo().Id {
return errors.Join(fmt.Errorf("no access: %w", err), domain.ErrInvalidData)
}

Expand Down

0 comments on commit 17844ed

Please sign in to comment.