From 73ad4ad6fd8fa973c6feecb0aee48e80a3492301 Mon Sep 17 00:00:00 2001 From: Christian Cruz Date: Wed, 18 May 2022 02:20:00 -0500 Subject: [PATCH] UIU-1990: Display the patron's name, in plain text, if they don't have access to view the profile, for the 'Updated By' field --- lib/ControlledVocab/ControlledVocab.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ControlledVocab/ControlledVocab.js b/lib/ControlledVocab/ControlledVocab.js index accf810fe..9017f9c6e 100644 --- a/lib/ControlledVocab/ControlledVocab.js +++ b/lib/ControlledVocab/ControlledVocab.js @@ -385,7 +385,8 @@ class ControlledVocab extends React.Component { if (record) { const { firstName, lastName } = record.personal; const name = firstName ? `${lastName}, ${firstName}` : lastName; - user = {name}; + const { stripes } = this.props; + user = stripes.hasPerm('ui-users.view') ? {name} : name; } return (